Skip to content

Commit b41f3f8

Browse files
author
Tom Rodriguez
committed
8268478: JVMCI tests failing after JDK-8268052
Reviewed-by: kvn, eosterlund
1 parent 7ff6e7b commit b41f3f8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/hotspot/share/jvmci/jvmciRuntime.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1805,6 +1805,7 @@ JVMCI::CodeInstallResult JVMCIRuntime::register_method(JVMCIEnv* JVMCIENV,
18051805
}
18061806
} else {
18071807
assert(!nmethod_mirror.is_hotspot() || data->get_nmethod_mirror(nm, /* phantom_ref */ false) == HotSpotJVMCI::resolve(nmethod_mirror), "must be");
1808+
MutexLocker ml(CompiledMethod_lock, Mutex::_no_safepoint_check_flag);
18081809
if (!nm->make_in_use()) {
18091810
result = JVMCI::nmethod_reclaimed;
18101811
}

0 commit comments

Comments
 (0)