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

@ -1282,7 +1282,6 @@ Klass* InstanceKlass::array_klass_impl(bool or_null, int n, TRAPS) {
JavaThread *jt = (JavaThread *)THREAD;
{
// Atomic creation of array_klasses
MutexLocker mc(Compile_lock, THREAD); // for vtables
MutexLocker ma(MultiArray_lock, THREAD);
// Check if update has already taken place