RFR(S) 8146201: [AOT] Class static initializers that are not pure should not be executed during static compilation

dean.long at oracle.com dean.long at oracle.com
Mon Mar 19 20:32:27 UTC 2018


Previously, jaotc would run static initializers on classes it accessed 
during compilation, which is undesirable if those initializers are not 
pure.  This change does not attempt to identify if an initializer is 
pure.  Instead, the compiler avoids triggering any initialization at 
all, while still doing eager resolution and linking.  The upstream Graal 
changes have been pushed here:


where a new HotSpotLazyInitializationTest test was also added.


More information about the hotspot-compiler-dev mailing list