Suggested fix for JDK-4724038 (Add unmap method to MappedByteBuffer)
Remi Forax
forax at univ-mlv.fr
Wed Sep 9 16:46:13 UTC 2015
MutableCallSite.setTarget() also works that way in Hotspot, it goes to a safe point to trash all assembly codes generated from methods that use an invokedynamic that uses the target of the callsite.
Rémi
----- Mail original -----
> De: "Andrew Haley" <aph at redhat.com>
> À: core-libs-dev at openjdk.java.net
> Envoyé: Mercredi 9 Septembre 2015 15:17:31
> Objet: Re: Suggested fix for JDK-4724038 (Add unmap method to MappedByteBuffer)
>
> 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.
>
> Andrew.
>
>
More information about the core-libs-dev
mailing list