diff src/share/vm/prims/jni.cpp @ 1481:fe69dec9a1ed

Added support for CompileTheWorld.
author Thomas Wuerthinger <wuerthinger@ssw.jku.at>
date Mon, 29 Nov 2010 12:01:45 +0100
parents 7cf1952ec5fb
children 2d26b0046e0d
line wrap: on
line diff
--- a/src/share/vm/prims/jni.cpp	Sat Nov 27 16:43:53 2010 +0100
+++ b/src/share/vm/prims/jni.cpp	Mon Nov 29 12:01:45 2010 +0100
@@ -3293,13 +3293,14 @@
     if (JvmtiExport::should_post_thread_life()) {
        JvmtiExport::post_thread_start(thread);
     }
-    // Check if we should compile all classes on bootclasspath
-    NOT_PRODUCT(if (CompileTheWorld) ClassLoader::compile_the_world();)
 
     if (BootstrapC1X) {
       CompileBroker::bootstrap_c1x();
     }
 
+    // Check if we should compile all classes on bootclasspath
+    NOT_PRODUCT(if (CompileTheWorld) ClassLoader::compile_the_world();)
+
     // Since this is not a JVM_ENTRY we have to set the thread state manually before leaving.
     ThreadStateTransition::transition_and_fence(thread, _thread_in_vm, _thread_in_native);
   } else {