Mercurial > hg > graal-jvmci-8
diff src/share/vm/graal/graalCompiler.cpp @ 18118:e98942f26fa4
graalCompiler: fix bootstrap with CTW (regression caused by jdk8-8041959)
author | Bernhard Urban <bernhard.urban@jku.at> |
---|---|
date | Fri, 17 Oct 2014 11:59:55 +0200 |
parents | f55f2d400797 |
children | 6997fce99fa3 |
line wrap: on
line diff
--- a/src/share/vm/graal/graalCompiler.cpp Fri Oct 17 10:32:04 2014 +0200 +++ b/src/share/vm/graal/graalCompiler.cpp Fri Oct 17 11:59:55 2014 +0200 @@ -75,6 +75,13 @@ #ifdef COMPILERGRAAL void GraalCompiler::bootstrap() { JavaThread* THREAD = JavaThread::current(); +#ifndef PRODUCT + // We turn off CompileTheWorld so that compilation requests are not ignored during bootstrap. + bool doCTW = CompileTheWorld; + if (CompileTheWorld) { + CompileTheWorld = false; + } +#endif _bootstrapping = true; ResourceMark rm; HandleMark hm; @@ -115,7 +122,7 @@ } _bootstrapping = false; #ifndef PRODUCT - if (CompileTheWorld) { + if (doCTW) { compile_the_world(); } #endif