hotspot/src/share/vm/runtime/simpleThresholdPolicy.cpp
changeset 37281 c4e7456d6ae1
parent 36556 7f092a7ce938
child 38133 78b95467b9f1
equal deleted inserted replaced
37280:bf5d76dcf685 37281:c4e7456d6ae1
   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)) {