harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Ellison <t.p.elli...@gmail.com>
Subject Re: [VM]How to trigue GC while free native memory is low.
Date Mon, 05 Feb 2007 10:04:32 GMT
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>


View raw message