comparison src/share/vm/graal/graalCompiler.cpp @ 19945: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
comparison
equal deleted inserted replaced
19944:077c16efeb6d 19945:f2bdbfe9201b
63 63
64 #ifdef COMPILERGRAAL 64 #ifdef COMPILERGRAAL
65 void GraalCompiler::bootstrap() { 65 void GraalCompiler::bootstrap() {
66 JavaThread* THREAD = JavaThread::current(); 66 JavaThread* THREAD = JavaThread::current();
67 _bootstrapping = true; 67 _bootstrapping = true;
68 // Allow bootstrap to perform Graal compilations of itself
69 bool c1only = GraalCompileWithC1Only;
70 GraalCompileWithC1Only = false;
68 ResourceMark rm; 71 ResourceMark rm;
69 HandleMark hm; 72 HandleMark hm;
70 if (PrintBootstrap) { 73 if (PrintBootstrap) {
71 tty->print("Bootstrapping Graal"); 74 tty->print("Bootstrapping Graal");
72 } 75 }
103 } while (qsize != 0); 106 } while (qsize != 0);
104 107
105 if (PrintBootstrap) { 108 if (PrintBootstrap) {
106 tty->print_cr(" in " JLONG_FORMAT " ms (compiled %d methods)", os::javaTimeMillis() - start, _methodsCompiled); 109 tty->print_cr(" in " JLONG_FORMAT " ms (compiled %d methods)", os::javaTimeMillis() - start, _methodsCompiled);
107 } 110 }
111 GraalCompileWithC1Only = c1only;
108 _bootstrapping = false; 112 _bootstrapping = false;
109 } 113 }
110 114
111 void GraalCompiler::compile_method(methodHandle method, int entry_bci, GraalEnv* env) { 115 void GraalCompiler::compile_method(methodHandle method, int entry_bci, GraalEnv* env) {
112 GRAAL_EXCEPTION_CONTEXT 116 GRAAL_EXCEPTION_CONTEXT