hotspot/src/share/vm/prims/jvmtiEnvBase.cpp
changeset 27165 785a8d56024c
parent 24351 61b33cc6d3cf
child 29081 c61eb4914428
equal deleted inserted replaced
27164:6523fa019ffa 27165:785a8d56024c
  1029       ret.entry_count = count_locked_objects(owning_thread, hobj);
  1029       ret.entry_count = count_locked_objects(owning_thread, hobj);
  1030     }
  1030     }
  1031     // implied else: entry_count == 0
  1031     // implied else: entry_count == 0
  1032   }
  1032   }
  1033 
  1033 
  1034   int nWant,nWait;
  1034   jint nWant, nWait;
  1035   if (mon != NULL) {
  1035   if (mon != NULL) {
  1036     // this object has a heavyweight monitor
  1036     // this object has a heavyweight monitor
  1037     nWant = mon->contentions(); // # of threads contending for monitor
  1037     nWant = mon->contentions(); // # of threads contending for monitor
  1038     nWait = mon->waiters();     // # of threads in Object.wait()
  1038     nWait = mon->waiters();     // # of threads in Object.wait()
  1039     ret.waiter_count = nWant + nWait;
  1039     ret.waiter_count = nWant + nWait;