src/hotspot/share/runtime/compilationPolicy.cpp
changeset 54015 cd701366fcf8
parent 53194 c4a64760b1b0
child 54983 81becad91321
equal deleted inserted replaced
54014:083d7a34bbfd 54015:cd701366fcf8
   174   // NOTE: CompileBroker::should_compile_new_jobs() checks for UseCompiler
   174   // NOTE: CompileBroker::should_compile_new_jobs() checks for UseCompiler
   175   return CompileBroker::should_compile_new_jobs();
   175   return CompileBroker::should_compile_new_jobs();
   176 }
   176 }
   177 
   177 
   178 CompileTask* CompilationPolicy::select_task_helper(CompileQueue* compile_queue) {
   178 CompileTask* CompilationPolicy::select_task_helper(CompileQueue* compile_queue) {
       
   179   // Remove unloaded methods from the queue
       
   180   for (CompileTask* task = compile_queue->first(); task != NULL; ) {
       
   181     CompileTask* next = task->next();
       
   182     if (task->is_unloaded()) {
       
   183       compile_queue->remove_and_mark_stale(task);
       
   184     }
       
   185     task = next;
       
   186   }
   179 #if INCLUDE_JVMCI
   187 #if INCLUDE_JVMCI
   180   if (UseJVMCICompiler && !BackgroundCompilation) {
   188   if (UseJVMCICompiler && !BackgroundCompilation) {
   181     /*
   189     /*
   182      * In blocking compilation mode, the CompileBroker will make
   190      * In blocking compilation mode, the CompileBroker will make
   183      * compilations submitted by a JVMCI compiler thread non-blocking. These
   191      * compilations submitted by a JVMCI compiler thread non-blocking. These