Skip to content
Permalink
Browse files

8249880: JVMCI calling register_nmethod without CodeCache lock

Reviewed-by: eosterlund, kvn, never
  • Loading branch information
Bob Vandette
Bob Vandette committed Jul 22, 2020
1 parent 39b22d1 commit 33016a8325c98eed8fb93b46c59f88a68d6cc019
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/hotspot/share/jvmci/jvmciRuntime.cpp
@@ -668,6 +668,7 @@ void JVMCINMethodData::set_nmethod_mirror(nmethod* nm, oop new_mirror) {

// Since we've patched some oops in the nmethod,
// (re)register it with the heap.
MutexLocker ml(CodeCache_lock, Mutex::_no_safepoint_check_flag);
Universe::heap()->register_nmethod(nm);
}

0 comments on commit 33016a8

Please sign in to comment.