JDK-8027351: (ref) Base's class finalize method not invoked if a private finalize method exists in its subclass

Mandy Chung mandy.chung at oracle.com
Tue Nov 5 02:54:20 UTC 2013


On 11/4/2013 6:29 PM, David Holmes wrote:
>>> 2. In VM.java. booted need not be volatile now that it is only
>>> accessed within a locked region.
>
> Oops my bad! The accessor wasn't synchronized but now is. Your call 
> whether to leave as is or revert to previous.

I'm fine with making isBooted() to a synchronized method since I expect 
the contention on this method is very low and that makes access of the 
booted field using the consistent synchronization.

Mandy



More information about the core-libs-dev mailing list