Mercurial > hg > graal-jvmci-8
comparison src/share/vm/jvmci/jvmciCompiler.cpp @ 22575:569c82ebb96e
Replace JVMCICompileWithC1Only with package based controls
author | Tom Rodriguez <tom.rodriguez@oracle.com> |
---|---|
date | Thu, 17 Sep 2015 18:25:08 -0700 |
parents | 5a706439be63 |
children | a269bc93625b |
comparison
equal
deleted
inserted
replaced
22574:5a706439be63 | 22575:569c82ebb96e |
---|---|
67 #endif | 67 #endif |
68 | 68 |
69 JavaThread* THREAD = JavaThread::current(); | 69 JavaThread* THREAD = JavaThread::current(); |
70 _bootstrapping = true; | 70 _bootstrapping = true; |
71 // Allow bootstrap to perform JVMCI compilations of itself | 71 // Allow bootstrap to perform JVMCI compilations of itself |
72 bool c1only = JVMCICompileWithC1Only; | |
73 JVMCICompileWithC1Only = false; | |
74 ResourceMark rm; | 72 ResourceMark rm; |
75 HandleMark hm; | 73 HandleMark hm; |
76 if (PrintBootstrap) { | 74 if (PrintBootstrap) { |
77 tty->print("Bootstrapping JVMCI"); | 75 tty->print("Bootstrapping JVMCI"); |
78 } | 76 } |
109 } while (qsize != 0); | 107 } while (qsize != 0); |
110 | 108 |
111 if (PrintBootstrap) { | 109 if (PrintBootstrap) { |
112 tty->print_cr(" in " JLONG_FORMAT " ms (compiled %d methods)", os::javaTimeMillis() - start, _methodsCompiled); | 110 tty->print_cr(" in " JLONG_FORMAT " ms (compiled %d methods)", os::javaTimeMillis() - start, _methodsCompiled); |
113 } | 111 } |
114 JVMCICompileWithC1Only = c1only; | |
115 _bootstrapping = false; | 112 _bootstrapping = false; |
116 } | 113 } |
117 | 114 |
118 void JVMCICompiler::compile_method(methodHandle method, int entry_bci, JVMCIEnv* env) { | 115 void JVMCICompiler::compile_method(methodHandle method, int entry_bci, JVMCIEnv* env) { |
119 JVMCI_EXCEPTION_CONTEXT | 116 JVMCI_EXCEPTION_CONTEXT |
154 // Compilation entry point for methods | 151 // Compilation entry point for methods |
155 void JVMCICompiler::compile_method(ciEnv* env, ciMethod* target, int entry_bci) { | 152 void JVMCICompiler::compile_method(ciEnv* env, ciMethod* target, int entry_bci) { |
156 ShouldNotReachHere(); | 153 ShouldNotReachHere(); |
157 } | 154 } |
158 | 155 |
156 bool JVMCICompiler::is_trivial(Method* method) { | |
157 if (_bootstrapping) { | |
158 return false; | |
159 } | |
160 return JVMCIRuntime::treat_as_trivial(method); | |
161 } | |
162 | |
159 // Print compilation timers and statistics | 163 // Print compilation timers and statistics |
160 void JVMCICompiler::print_timers() { | 164 void JVMCICompiler::print_timers() { |
161 print_compilation_timers(); | 165 print_compilation_timers(); |
162 } | 166 } |
163 | 167 |