hotspot/src/share/vm/runtime/synchronizer.cpp
changeset 46342 c871e0f8b02a
parent 46271 979ebd346ecf
child 46474 c872a196b75f
--- a/hotspot/src/share/vm/runtime/synchronizer.cpp	Tue Mar 21 11:25:18 2017 -0400
+++ b/hotspot/src/share/vm/runtime/synchronizer.cpp	Wed Dec 21 12:47:29 2016 +0300
@@ -1879,23 +1879,6 @@
 
 #ifndef PRODUCT
 
-// Verify all monitors in the monitor cache, the verification is weak.
-void ObjectSynchronizer::verify() {
-  PaddedEnd<ObjectMonitor> * block =
-    (PaddedEnd<ObjectMonitor> *)OrderAccess::load_ptr_acquire(&gBlockList);
-  while (block != NULL) {
-    assert(block->object() == CHAINMARKER, "must be a block header");
-    for (int i = 1; i < _BLOCKSIZE; i++) {
-      ObjectMonitor* mid = (ObjectMonitor *)(block + i);
-      oop object = (oop)mid->object();
-      if (object != NULL) {
-        mid->verify();
-      }
-    }
-    block = (PaddedEnd<ObjectMonitor> *)block->FreeNext;
-  }
-}
-
 // Check if monitor belongs to the monitor cache
 // The list is grow-only so it's *relatively* safe to traverse
 // the list of extant blocks without taking a lock.