< prev index next >

src/hotspot/share/runtime/synchronizer.cpp

Print this page
rev 51801 : imported patch syncknobs-06-Knob_Verbose
rev 51802 : imported patch syncknobs-07-Knob_VerifyInUse
rev 51803 : imported patch syncknobs-07.2-Knob_VerifyInUse

@@ -1056,25 +1056,10 @@
     // The VMThread will delete the op when completed.
     VMThread::execute(new VM_ScavengeMonitors());
   }
 }
 
-void ObjectSynchronizer::verifyInUse(Thread *Self) {
-  ObjectMonitor* mid;
-  int in_use_tally = 0;
-  for (mid = Self->omInUseList; mid != NULL; mid = mid->FreeNext) {
-    in_use_tally++;
-  }
-  assert(in_use_tally == Self->omInUseCount, "in-use count off");
-
-  int free_tally = 0;
-  for (mid = Self->omFreeList; mid != NULL; mid = mid->FreeNext) {
-    free_tally++;
-  }
-  assert(free_tally == Self->omFreeCount, "free count off");
-}
-
 ObjectMonitor* ObjectSynchronizer::omAlloc(Thread * Self) {
   // A large MAXPRIVATE value reduces both list lock contention
   // and list coherency traffic, but also tends to increase the
   // number of objectMonitors in circulation as well as the STW
   // scavenge costs.  As usual, we lean toward time in space-time
< prev index next >