Skip to content
Browse files
8277213: CompileTask_lock is acquired out of order with MethodCompile…

Reviewed-by: rbackman, coleenp
  • Loading branch information
TobiHartmann committed Nov 19, 2021
1 parent 47564ca commit f34f119080b4e8baf396fb26c21d572dd432fd91
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/hotspot/share/compiler/compileTask.hpp
@@ -104,7 +104,8 @@ class CompileTask : public CHeapObj<mtCompiler> {

CompileTask() : _failure_reason(NULL), _failure_reason_on_C_heap(false) {
_lock = new Monitor(Mutex::safepoint, "CompileTask_lock");
// May hold MethodCompileQueue_lock
_lock = new Monitor(Mutex::safepoint-1, "CompileTask_lock");

void initialize(int compile_id, const methodHandle& method, int osr_bci, int comp_level,

1 comment on commit f34f119

Copy link

@openjdk-notifier openjdk-notifier bot commented on f34f119 Nov 19, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.