mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-19 10:34:38 +02:00
8231289: Disentangle JvmtiRawMonitor from ObjectMonitor and clean it up
Reviewed-by: sspitsyn, dcubed, coleenp
This commit is contained in:
parent
b1bffdfa00
commit
f3df804e24
9 changed files with 333 additions and 326 deletions
|
@ -659,10 +659,9 @@ JvmtiEnvBase::get_current_contended_monitor(JavaThread *calling_thread, JavaThre
|
|||
// thread is not doing an Object.wait() call
|
||||
mon = java_thread->current_pending_monitor();
|
||||
if (mon != NULL) {
|
||||
// The thread is trying to enter() or raw_enter() an ObjectMonitor.
|
||||
// The thread is trying to enter() an ObjectMonitor.
|
||||
obj = (oop)mon->object();
|
||||
// If obj == NULL, then ObjectMonitor is raw which doesn't count
|
||||
// as contended for this API
|
||||
assert(obj != NULL, "ObjectMonitor should have a valid object!");
|
||||
}
|
||||
// implied else: no contended ObjectMonitor
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue