src/hotspot/share/runtime/thread.cpp
changeset 49746 b17256b5c047
parent 49739 00805b129186
child 49751 c3a10df652c0
--- a/src/hotspot/share/runtime/thread.cpp	Wed Apr 11 13:51:33 2018 +0200
+++ b/src/hotspot/share/runtime/thread.cpp	Wed Apr 11 13:52:23 2018 +0200
@@ -106,6 +106,7 @@
 #include "trace/traceMacros.hpp"
 #include "trace/tracing.hpp"
 #include "utilities/align.hpp"
+#include "utilities/copy.hpp"
 #include "utilities/defaultStream.hpp"
 #include "utilities/dtrace.hpp"
 #include "utilities/events.hpp"
@@ -3891,10 +3892,12 @@
   // cache the system and platform class loaders
   SystemDictionary::compute_java_loaders(CHECK_JNI_ERR);
 
+#if INCLUDE_CDS
   if (DumpSharedSpaces) {
     // capture the module path info from the ModuleEntryTable
     ClassLoader::initialize_module_path(THREAD);
   }
+#endif
 
 #if INCLUDE_JVMCI
   if (force_JVMCI_intialization) {