OpenJDK init/exit hooks src/hotspot/share/runtime/init.cpp: jint init_globals(); void exit_globals();