13 |
|
* @build * |
14 |
|
* @run junit/othervm/timeout=1000 -Djsr166.testImplementationDetails=true JSR166TestCase |
15 |
|
* @run junit/othervm/timeout=1000 -Djava.util.concurrent.ForkJoinPool.common.parallelism=0 -Djsr166.testImplementationDetails=true JSR166TestCase |
16 |
+ |
* @run junit/othervm/timeout=1000 -Djava.util.concurrent.ForkJoinPool.common.parallelism=1 -Djava.util.secureRandomSeed=true JSR166TestCase |
17 |
|
*/ |
18 |
|
|
19 |
|
import static java.util.concurrent.TimeUnit.MILLISECONDS; |
956 |
|
} |
957 |
|
} |
958 |
|
|
959 |
< |
/** Like Runnable, but with the freedom to throw anything */ |
959 |
> |
/** |
960 |
> |
* Like Runnable, but with the freedom to throw anything. |
961 |
> |
* junit folks had the same idea: |
962 |
> |
* http://junit.org/junit5/docs/snapshot/api/org/junit/gen5/api/Executable.html |
963 |
> |
*/ |
964 |
|
interface Action { public void run() throws Throwable; } |
965 |
|
|
966 |
|
/** |