RFR 8054494: Remove sun.misc.Unsafe.monitorEnter, monitorExit and tryMonitorEnter

David Holmes david.holmes at oracle.com
Wed Jan 14 07:38:32 UTC 2015


Hi Paul,

On 13/01/2015 11:18 PM, Paul Sandoz wrote:
> Here is a second revision that avoids adding the monitor methods to WhiteBox:
>
>    http://cr.openjdk.java.net/~psandoz/jdk9/JDK-8054494-dev-unsafe-monitor-remove/webrev/
>
> I investigated changing ProcessBuilder/Basic.java to use WhiteBox.isMonitorInflated (with some judicious jtreg annotations and placing things on the boot classpath). However the peculiarities of when monitor inflation occurs seem to make using this unreliable so i left this test as is.

Ok. Changes seem fine - and nice not to have to move this stuff to WB.

Must confess I don't understand why the BusyLock test was using tryEnter 
in the first place :) I assume it passes/fails when expected using RTM?

Thanks,
David

> Paul.
>


More information about the hotspot-runtime-dev mailing list