Xiao-Feng Li wrote:
> This might be crazy, but is it possible or reasonable to have a method
> ByteBuffer.freeDirect()?

No, we cannot extend the API.

> It's a little big strange to me if API encourages this kind of
> behavior that programmer grabs resources freely while relying on
> certain unreliable behavior to release the resource.

Had to smile at this, I'm sure a C programmer would say the same of the
'new' keyword -- then you GC-folk would be out of a job <g>

Regards,
Tim

Reply via email to