private void checkTotalReadLockCount() {
    if (!DEBUG_SUSPEND_LOCK) {
      return;
    }
    Assert.assertHoldsLock(suspendLock, true);
    int result = 0;
    for (final Object o : readLockCountMap.values()) {
      result += (Integer) o;
    }
    Assert.assertTrue(result == totalReadLockCount);
  }
Debugging method

guarded.By {@link #suspendLock}
geode-core/src/main/java/org/apache/geode/distributed/internal/locks/DLockGrantor.java