--- jsr166/src/test/tck/JSR166TestCase.java 2012/12/16 17:22:42 1.93 +++ jsr166/src/test/tck/JSR166TestCase.java 2013/01/21 19:43:52 1.95 @@ -145,7 +145,9 @@ public class JSR166TestCase extends Test } /** - * Runs all JSR166 unit tests using junit.textui.TestRunner + * Runs all JSR166 unit tests using junit.textui.TestRunner. + * Optional command line arg provides the number of iterations to + * repeat running the tests. */ public static void main(String[] args) { if (useSecurityManager) { @@ -510,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()}. */