printWriter.append("\n");
}
if (lock.isWriteLocked() && lock instanceof ReentrantReadWriteLockTracker) {
ReentrantReadWriteLockTracker debugLock = (ReentrantReadWriteLockTracker) lock;
printWriter.append("Thread holding write-lock: \n");
printStackTrace(debugLock.writeLock().getStackTrace(), printWriter);
printWriter.append("\n");
}
printWriter.append("Queue length: " + lock.getQueueLength());
printWriter.append("\n");
printWriter.append("Queued threads: ");