I encountered JVM crash when I passed -XX:+EnableTracing.
I checked core image, it crashed in EventBooleanFlagChanged::writeEvent()
which is called by Arguments::apply_ergo() because thread had not been
initialized. (JVM seems to log changing GC algorithm to G1.)
writeEvent() uses ResourceMark. Default constructor of ResourceMark uses
ResourceArea in current thread. So ResourceMark in writeEvent() should
pass valid ResourceArea.