--- old/src/hotspot/share/runtime/thread.cpp 2018-04-09 15:29:56.147855177 -0700 +++ new/src/hotspot/share/runtime/thread.cpp 2018-04-09 15:29:55.875829521 -0700 @@ -3893,7 +3893,7 @@ if (DumpSharedSpaces) { // capture the module path info from the ModuleEntryTable - ClassLoader::initialize_module_path(); + ClassLoader::initialize_module_path(THREAD); } #if INCLUDE_JVMCI