private void removeAllTokens() {
    synchronized (tokens) {
      Assert.assertTrue(destroyed);
      for (DLockToken token : tokens.values()) {
        synchronized (token) {
          token.destroy();
        }
      }
      getStats().incTokens(-tokens.size());
      tokens.clear();
    }
  }
Destroys and removes all lock tokens. Caller must synchronize on destroyLock. Synchronizes on
tokens map and each token.
geode-core/src/main/java/org/apache/geode/distributed/internal/locks/DLockService.java