Suggested fix for JDK-4724038 (Add unmap method to MappedByteBuffer)

David M. Lloyd david.lloyd at
Wed Sep 9 13:55:04 UTC 2015

On 09/09/2015 08:17 AM, Andrew Haley wrote:
> On 09/09/2015 02:13 PM, David M. Lloyd wrote:
>> How would you hook into the safepoint to perform the unmapping?  You'd
>> have to wait for all threads to arrive at safepoints, wouldn't you?
> Yes.  That happens in the VM already, e.g. when we need to revoke the
> bias of a lock.  It's a well-established mechanism.

Could you extend the technique to other native resources as well?

More information about the core-libs-dev mailing list