# | Line 512 | Line 512 | public class JSR166TestCase extends Test | |
---|---|---|
512 | } | |
513 | ||
514 | /** | |
515 | + | * A debugging tool to print all stack traces, as jstack does. |
516 | + | */ |
517 | + | void printAllStackTraces() { |
518 | + | System.err.println( |
519 | + | Arrays.toString( |
520 | + | java.lang.management.ManagementFactory.getThreadMXBean() |
521 | + | .dumpAllThreads(true, true))); |
522 | + | } |
523 | + | |
524 | + | /** |
525 | * Checks that thread does not terminate within the default | |
526 | * millisecond delay of {@code timeoutMillis()}. | |
527 | */ |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |