# HG changeset patch # User Doug Simon # Date 1409910652 -7200 # Node ID 7404e11136973153346c2b761428d6a2a9134986 # Parent 35fda668ed6e96d1524bde44581170df5d110f2b enable CompileTheWorld in non-hosted mode diff -r 35fda668ed6e -r 7404e1113697 src/share/vm/graal/graalCompiler.cpp --- a/src/share/vm/graal/graalCompiler.cpp Thu Sep 04 22:34:03 2014 +0200 +++ b/src/share/vm/graal/graalCompiler.cpp Fri Sep 05 11:50:52 2014 +0200 @@ -63,7 +63,7 @@ CompilationPolicy::completed_vm_startup(); #ifndef PRODUCT - if (CompileTheWorld) { + if (CompileTheWorld && !BootstrapGraal) { compile_the_world(); } #endif @@ -113,6 +113,11 @@ tty->print_cr(" in %d ms (compiled %d methods)", os::javaTimeMillis() - start, _methodsCompiled); } _bootstrapping = false; +#ifndef PRODUCT + if (CompileTheWorld) { + compile_the_world(); + } +#endif } void GraalCompiler::compile_method(methodHandle method, int entry_bci, CompileTask* task) {