--- 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) {