--- old/src/hotspot/share/runtime/thread.cpp 2018-04-02 14:11:50.628013702 -0700 +++ new/src/hotspot/share/runtime/thread.cpp 2018-04-02 14:11:50.359988447 -0700 @@ -3891,6 +3891,11 @@ // cache the system and platform class loaders SystemDictionary::compute_java_loaders(CHECK_JNI_ERR); + if (DumpSharedSpaces) { + // capture the module path info from the ModuleEntryTable + ClassLoader::initialize_module_path(); + } + #if INCLUDE_JVMCI if (force_JVMCI_intialization) { JVMCIRuntime::force_initialization(CHECK_JNI_ERR);