Skip to content
This repository has been archived by the owner on May 29, 2024. It is now read-only.

Commit

Permalink
8286063: check compiler queue after calling AbstractCompiler::on_empt…
Browse files Browse the repository at this point in the history
…y_queue

Reviewed-by: kvn
  • Loading branch information
Doug Simon authored and dougxc committed May 4, 2022
1 parent eb6c6f3 commit 3a75e92
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/hotspot/share/compiler/compileBroker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,11 @@ CompileTask* CompileQueue::get(CompilerThread* thread) {
AbstractCompiler* compiler = thread->compiler();
guarantee(compiler != nullptr, "Compiler object must exist");
compiler->on_empty_queue(this, thread);
if (_first != nullptr) {
// The call to on_empty_queue may have temporarily unlocked the MCQ lock
// so check again whether any tasks were added to the queue.
break;
}

// If there are no compilation tasks and we can compile new jobs
// (i.e., there is enough free space in the code cache) there is
Expand Down

0 comments on commit 3a75e92

Please sign in to comment.