[11] RFR : java.nio.Buffer attachments

Alan Bateman Alan.Bateman at oracle.com
Fri Mar 9 16:00:39 UTC 2018


On 09/03/2018 15:23, David Lloyd wrote:
> I was just wondering if anyone has had a chance to give this a look
> and a think.  Thanks!
>
I think this needs a compelling example to demonstrate the motivation. 
Changing ByteBuffer duplicate to run arbitrary code to create a new 
attachment object for the new buffer is one thing that I found a bit 
strange in the proposal. Reading your original mail, it wasn't clear to 
me how different this is to maintaining a maps buffers to object, or 
buffer to buffer pool. Do you have such a map today?

-Alan


More information about the nio-dev mailing list