private void checkWriteLockWaiters() {
    if (!DEBUG_SUSPEND_LOCK) {
      return;
    }
    Assert.assertHoldsLock(suspendLock, true);
    int result = 0;
    for (final Object o : suspendQueue) {
      DLockRequestMessage r = (DLockRequestMessage) o;
      if (r.isSuspendLockingRequest()) {
        result++;
      }
    } // while
    Assert.assertTrue(result == writeLockWaiters);
  }
Verify the waiters (for debugging)

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