src/hotspot/share/prims/jvmtiEnvBase.cpp
changeset 58488 165b193b30dd
parent 57893 49fea19f0726
child 58679 9c3209ff7550
child 58722 cba8afa5cfed
equal deleted inserted replaced
58487:43f63f904bbc 58488:165b193b30dd
   657   ObjectMonitor *mon = java_thread->current_waiting_monitor();
   657   ObjectMonitor *mon = java_thread->current_waiting_monitor();
   658   if (mon == NULL) {
   658   if (mon == NULL) {
   659     // thread is not doing an Object.wait() call
   659     // thread is not doing an Object.wait() call
   660     mon = java_thread->current_pending_monitor();
   660     mon = java_thread->current_pending_monitor();
   661     if (mon != NULL) {
   661     if (mon != NULL) {
   662       // The thread is trying to enter() or raw_enter() an ObjectMonitor.
   662       // The thread is trying to enter() an ObjectMonitor.
   663       obj = (oop)mon->object();
   663       obj = (oop)mon->object();
   664       // If obj == NULL, then ObjectMonitor is raw which doesn't count
   664       assert(obj != NULL, "ObjectMonitor should have a valid object!");
   665       // as contended for this API
       
   666     }
   665     }
   667     // implied else: no contended ObjectMonitor
   666     // implied else: no contended ObjectMonitor
   668   } else {
   667   } else {
   669     // thread is doing an Object.wait() call
   668     // thread is doing an Object.wait() call
   670     obj = (oop)mon->object();
   669     obj = (oop)mon->object();