equal
deleted
inserted
replaced
231 void SimpleThresholdPolicy::compile(const methodHandle& mh, int bci, CompLevel level, JavaThread* thread) { |
231 void SimpleThresholdPolicy::compile(const methodHandle& mh, int bci, CompLevel level, JavaThread* thread) { |
232 assert(level <= TieredStopAtLevel, "Invalid compilation level"); |
232 assert(level <= TieredStopAtLevel, "Invalid compilation level"); |
233 if (level == CompLevel_none) { |
233 if (level == CompLevel_none) { |
234 return; |
234 return; |
235 } |
235 } |
|
236 |
|
237 #if INCLUDE_JVMCI |
|
238 // We can't compile with a JVMCI compiler until the module system is initialized. |
|
239 if (level == CompLevel_full_optimization && UseJVMCICompiler && !Universe::is_module_initialized()) { |
|
240 return; |
|
241 } |
|
242 #endif |
|
243 |
236 // Check if the method can be compiled. If it cannot be compiled with C1, continue profiling |
244 // Check if the method can be compiled. If it cannot be compiled with C1, continue profiling |
237 // in the interpreter and then compile with C2 (the transition function will request that, |
245 // in the interpreter and then compile with C2 (the transition function will request that, |
238 // see common() ). If the method cannot be compiled with C2 but still can with C1, compile it with |
246 // see common() ). If the method cannot be compiled with C2 but still can with C1, compile it with |
239 // pure C1. |
247 // pure C1. |
240 if (!can_be_compiled(mh, level)) { |
248 if (!can_be_compiled(mh, level)) { |