hotspot/src/share/vm/runtime/thread.cpp
changeset 40074 135bb8aa1e18
parent 40034 4a288aaf8511
child 40377 b77bf599c11b
--- a/hotspot/src/share/vm/runtime/thread.cpp	Tue Jul 19 18:11:03 2016 +0000
+++ b/hotspot/src/share/vm/runtime/thread.cpp	Tue Jul 19 18:59:11 2016 +0000
@@ -3770,6 +3770,9 @@
   // Final system initialization including security manager and system class loader
   call_initPhase3(CHECK_JNI_ERR);
 
+  // cache the system class loader
+  SystemDictionary::compute_java_system_loader(CHECK_(JNI_ERR));
+
 #if INCLUDE_JVMCI
   if (EnableJVMCI && UseJVMCICompiler && (!UseInterpreter || !BackgroundCompilation)) {
     // 8145270: Force initialization of JVMCI runtime otherwise requests for blocking
@@ -3777,8 +3780,6 @@
     JVMCIRuntime::force_initialization(CHECK_JNI_ERR);
   }
 #endif
-  // cache the system class loader
-  SystemDictionary::compute_java_system_loader(CHECK_(JNI_ERR));
 
   // Always call even when there are not JVMTI environments yet, since environments
   // may be attached late and JVMTI must track phases of VM execution