Mercurial > hg > truffle
diff src/share/vm/graal/graalCompiler.cpp @ 19941:f2bdbfe9201b
Experimentally disallow Graal compiling itself in tiered
author | Tom Rodriguez <tom.rodriguez@oracle.com> |
---|---|
date | Tue, 17 Mar 2015 19:21:57 -0700 |
parents | 18be6264186f |
children | 104304a54b0c |
line wrap: on
line diff
--- a/src/share/vm/graal/graalCompiler.cpp Tue Mar 17 19:21:54 2015 -0700 +++ b/src/share/vm/graal/graalCompiler.cpp Tue Mar 17 19:21:57 2015 -0700 @@ -65,6 +65,9 @@ void GraalCompiler::bootstrap() { JavaThread* THREAD = JavaThread::current(); _bootstrapping = true; + // Allow bootstrap to perform Graal compilations of itself + bool c1only = GraalCompileWithC1Only; + GraalCompileWithC1Only = false; ResourceMark rm; HandleMark hm; if (PrintBootstrap) { @@ -105,6 +108,7 @@ if (PrintBootstrap) { tty->print_cr(" in " JLONG_FORMAT " ms (compiled %d methods)", os::javaTimeMillis() - start, _methodsCompiled); } + GraalCompileWithC1Only = c1only; _bootstrapping = false; }