< prev index next >

src/hotspot/share/runtime/synchronizer.cpp

Print this page
rev 51786 : imported patch syncknobs-06-Knob_Verbose
rev 51787 : imported patch syncknobs-07-Knob_VerifyInUse

@@ -1097,13 +1097,10 @@
       guarantee(m->object() == NULL, "invariant");
       if (MonitorInUseLists) {
         m->FreeNext = Self->omInUseList;
         Self->omInUseList = m;
         Self->omInUseCount++;
-        if (ObjectMonitor::Knob_VerifyInUse) {
-          verifyInUse(Self);
-        }
       } else {
         m->FreeNext = NULL;
       }
       return m;
     }

@@ -1237,13 +1234,10 @@
         } else if (cur_mid_in_use != NULL) {
           cur_mid_in_use->FreeNext = mid->FreeNext; // maintain the current thread in-use list
         }
         extracted = true;
         Self->omInUseCount--;
-        if (ObjectMonitor::Knob_VerifyInUse) {
-          verifyInUse(Self);
-        }
         break;
       }
     }
     assert(extracted, "Should have extracted from in-use list");
   }

@@ -1775,13 +1769,10 @@
   Thread::muxAcquire(&gListLock, "scavenge - return");
 
   // Adjust counters
   counters->nInCirculation += thread->omInUseCount;
   thread->omInUseCount -= deflated_count;
-  if (ObjectMonitor::Knob_VerifyInUse) {
-    verifyInUse(thread);
-  }
   counters->nScavenged += deflated_count;
   counters->nInuse += thread->omInUseCount;
 
   // Move the scavenged monitors back to the global free list.
   if (freeHeadp != NULL) {
< prev index next >