--- jsr166/src/test/tck/JSR166TestCase.java 2013/01/21 19:32:19 1.94 +++ jsr166/src/test/tck/JSR166TestCase.java 2013/01/21 19:43:52 1.95 @@ -512,6 +512,16 @@ public class JSR166TestCase extends Test } /** + * A debugging tool to print all stack traces, as jstack does. + */ + void printAllStackTraces() { + System.err.println( + Arrays.toString( + java.lang.management.ManagementFactory.getThreadMXBean() + .dumpAllThreads(true, true))); + } + + /** * Checks that thread does not terminate within the default * millisecond delay of {@code timeoutMillis()}. */