RFR: JDK-8147000: VM crashes during initialization trying to print log message

Bengt Rutisson bengt.rutisson at oracle.com
Wed Jan 13 21:31:11 UTC 2016

Hi everyone,

Could I have a couple of reviews for this change to fix GC logging 
during startup?


A recent fix in hs-rt, 8146222, exposes a problem with how the 
GCId::print_prefix() method checks whether it is safe to access the 
current thread.

ThreadLocalStorage::is_initialized() does not guarantee that that 
ThreadLocalStorage::thread() will not return NULL.

Changed to use Thread::current_or_null() instead. Thanks David Holmes 
for pointing this out.


More information about the hotspot-gc-dev mailing list