145 |
|
} |
146 |
|
|
147 |
|
/** |
148 |
< |
* Runs all JSR166 unit tests using junit.textui.TestRunner |
148 |
> |
* Runs all JSR166 unit tests using junit.textui.TestRunner. |
149 |
> |
* Optional command line arg provides the number of iterations to |
150 |
> |
* repeat running the tests. |
151 |
|
*/ |
152 |
|
public static void main(String[] args) { |
153 |
|
if (useSecurityManager) { |
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 |
|
*/ |