Skip to content

Commit 94d92c3

Browse files

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/hotspot/share/compiler/compileBroker.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -386,9 +386,9 @@ void CompileQueue::add_pending(CompileTask* task) {
386386
task->method()->set_queued_for_compilation();
387387
_queue.push(*task);
388388
// FIXME: additional coordination needed? e.g., is it possible for compiler thread to block w/o processing pending tasks?
389-
if (is_empty() && _lock->try_lock()) {
389+
if (is_empty()) {
390+
MutexLocker ml(_lock);
390391
_lock->notify_all();
391-
_lock->unlock();
392392
}
393393
}
394394

0 commit comments

Comments
 (0)
Please sign in to comment.