mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8212682: Avoid holding Compile_lock when blocking for GC in ObjArrayKlass::allocate_objArray_klass()
Reviewed-by: coleenp, dlong
This commit is contained in:
parent
041946dcb0
commit
8b1844626a
4 changed files with 1 additions and 6 deletions
|
@ -2944,8 +2944,7 @@ bool JvmtiSampledObjectAllocEventCollector::object_alloc_is_safe_to_sample() {
|
|||
return false;
|
||||
}
|
||||
|
||||
if (Compile_lock->owner() == thread ||
|
||||
MultiArray_lock->owner() == thread) {
|
||||
if (MultiArray_lock->owner() == thread) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue