--- old/src/share/vm/graal/graalCompiler.cpp 2013-04-12 12:30:32.000000000 -0700 +++ new/src/share/vm/graal/graalCompiler.cpp 2013-04-12 12:30:32.000000000 -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(); } }