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

Alan Bateman Alan.Bateman at oracle.com
Sat Nov 2 09:03:04 UTC 2013

On 01/11/2013 21:11, Mandy Chung wrote:
> I was expecting that would get optimized during runtime and it's a 
> simple getter method. It's a good suggestion to cache it at the 
> finalize thread start time and here is the revised webrev:
> http://cr.openjdk.java.net/~mchung/jdk8/webrevs/8027351/webrev.01/

This looks good. A small typo in ensureAccessAvailable, "ntil" -> 
"until". Also the continue isn't needed.

On the finalizer thread now waiting for the system classes to be 
initialized then this is probably a good thing (although I can imagine 
subtle changes for corner cases, say where an agent is playing with fire 
and instrumenting classes early in the startup).


More information about the core-libs-dev mailing list