RFR: 8225344: Avoid VM_EnableBiasedLocking VM operation during bootstrap if BiasedLockingStartupDelay is 0

Aleksey Shipilev shade at redhat.com
Wed Jun 26 14:21:41 UTC 2019


On 6/26/19 3:10 PM, Claes Redestad wrote:
> Hi,
> 
> please review this cleanup to avoid a safepointing VM operation during
> bootstrap to enable biased locking if the configured delay is zero
> (current default).
> 
> Webrev: http://cr.openjdk.java.net/~redestad/8225344/open.00/

The idea sounds fine. I wonder, however, if VM operation provided enough synchronization for every
Java thread to see the new value of the flag. Without the VM op, it seems safer to wrap the accesess
to that field with OrderAccess.

-Aleksey



More information about the hotspot-runtime-dev mailing list