mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-18 01:54:47 +02:00
8286957: Held monitor count
Reviewed-by: rpressler, eosterlund
This commit is contained in:
parent
1fec62f299
commit
ac399e9777
44 changed files with 407 additions and 238 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue