src/hotspot/share/runtime/tieredThresholdPolicy.cpp
changeset 54736 1dc9bf9d016b
parent 54669 ad45b3802d4e
child 54983 81becad91321
equal deleted inserted replaced
54735:a9f729b641a3 54736:1dc9bf9d016b
   351 
   351 
   352   if (max_task != NULL && max_task->comp_level() == CompLevel_full_profile &&
   352   if (max_task != NULL && max_task->comp_level() == CompLevel_full_profile &&
   353       TieredStopAtLevel > CompLevel_full_profile &&
   353       TieredStopAtLevel > CompLevel_full_profile &&
   354       max_method != NULL && is_method_profiled(max_method)) {
   354       max_method != NULL && is_method_profiled(max_method)) {
   355     max_task->set_comp_level(CompLevel_limited_profile);
   355     max_task->set_comp_level(CompLevel_limited_profile);
       
   356 
       
   357     if (CompileBroker::compilation_is_complete(max_method, max_task->osr_bci(), CompLevel_limited_profile)) {
       
   358       if (PrintTieredEvents) {
       
   359         print_event(REMOVE_FROM_QUEUE, max_method, max_method, max_task->osr_bci(), (CompLevel)max_task->comp_level());
       
   360       }
       
   361       compile_queue->remove_and_mark_stale(max_task);
       
   362       max_method->clear_queued_for_compilation();
       
   363       return NULL;
       
   364     }
       
   365 
   356     if (PrintTieredEvents) {
   366     if (PrintTieredEvents) {
   357       print_event(UPDATE_IN_QUEUE, max_method, max_method, max_task->osr_bci(), (CompLevel)max_task->comp_level());
   367       print_event(UPDATE_IN_QUEUE, max_method, max_method, max_task->osr_bci(), (CompLevel)max_task->comp_level());
   358     }
   368     }
   359   }
   369   }
   360 
   370