equal
deleted
inserted
replaced
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 |