src/hotspot/share/runtime/thread.cpp
changeset 49739 00805b129186
parent 49659 0ed1370f52bb
child 49746 b17256b5c047
--- a/src/hotspot/share/runtime/thread.cpp	Tue Apr 10 10:06:42 2018 -0400
+++ b/src/hotspot/share/runtime/thread.cpp	Tue Apr 10 11:43:40 2018 -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(THREAD);
+  }
+
 #if INCLUDE_JVMCI
   if (force_JVMCI_intialization) {
     JVMCIRuntime::force_initialization(CHECK_JNI_ERR);