8212682: Avoid holding Compile_lock when blocking for GC in ObjArrayKlass::allocate_objArray_klass()

Reviewed-by: coleenp, dlong
This commit is contained in:
Erik Österlund 2018-11-20 10:08:18 +01:00
parent 041946dcb0
commit 8b1844626a
4 changed files with 1 additions and 6 deletions

View file

@ -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;