< 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,1109 **** 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; } --- 1097,1106 ----
*** 1237,1249 **** } 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"); } --- 1234,1243 ----
*** 1775,1787 **** 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) { --- 1769,1778 ----
< prev index next >