diff src/share/vm/graal/graalCompiler.cpp @ 9108:b78686983a75

GRAAL-218: add CompileTheWorld functionality Reviewed-by:
author twisti
date Sat, 13 Apr 2013 22:59:27 -0700
parents b8f261ba79c6
children bc26f978b0ce
line wrap: on
line diff
--- a/src/share/vm/graal/graalCompiler.cpp	Sat Apr 13 22:16:04 2013 +0200
+++ b/src/share/vm/graal/graalCompiler.cpp	Sat Apr 13 22:59:27 2013 -0700
@@ -91,6 +91,10 @@
       VMToCompiler::startCompiler();
       _initialized = true;
       if (BootstrapGraal) {
+        // We turn off CompileTheWorld and complete the VM startup so that
+        // Graal can be compiled by C1/C2 when we do a CTW.
+        NOT_PRODUCT(CompileTheWorld = false);
+        CompilationPolicy::completed_vm_startup();
         VMToCompiler::bootstrap();
       }
     }