public static Set<Dependency<Serializable, Thread>> getHeldResources() {
    Thread[] allThreads = getAllThreads();
    Set<Dependency<Serializable, Thread>> heldResources =
        new HashSet<>();
    for (DependencyMonitor monitor : monitors) {
      heldResources.addAll(monitor.getHeldResources(allThreads));
    }

    return heldResources;
  }
Get the set of all resources which are held by threads in this VM, as reported by the
dependency monitors registered with this manager.
geode-core/src/main/java/org/apache/geode/distributed/internal/deadlock/DependencyMonitorManager.java