8286957: Held monitor count

Reviewed-by: rpressler, eosterlund
This commit is contained in:
Robbin Ehn 2022-07-08 07:12:19 +00:00
parent 1fec62f299
commit ac399e9777
44 changed files with 407 additions and 238 deletions

View file

@ -1522,7 +1522,6 @@ bool Deoptimization::relock_objects(JavaThread* thread, GrowableArray<MonitorInf
BasicLock* lock = mon_info->lock();
ObjectSynchronizer::enter(obj, lock, deoptee_thread);
assert(mon_info->owner()->is_locked(), "object must be locked now");
deoptee_thread->inc_held_monitor_count();
}
}
}
@ -1597,7 +1596,6 @@ void Deoptimization::pop_frames_failed_reallocs(JavaThread* thread, vframeArray*
BasicObjectLock* src = monitors->at(j);
if (src->obj() != NULL) {
ObjectSynchronizer::exit(src->obj(), src->lock(), thread);
thread->dec_held_monitor_count();
}
}
array->element(i)->free_monitors(thread);