1541 |
|
* timeout elapsed |
1542 |
|
*/ |
1543 |
|
public void testAwaitQuiescence2() throws Exception { |
1544 |
+ |
/** |
1545 |
+ |
* """It is possible to disable or limit the use of threads in the |
1546 |
+ |
* common pool by setting the parallelism property to zero. However |
1547 |
+ |
* doing so may cause unjoined tasks to never be executed.""" |
1548 |
+ |
*/ |
1549 |
+ |
if ("0".equals(System.getProperty( |
1550 |
+ |
"java.util.concurrent.ForkJoinPool.common.parallelism"))) |
1551 |
+ |
return; |
1552 |
|
final ForkJoinPool p = new ForkJoinPool(); |
1553 |
|
try { |
1554 |
|
assertTrue(p.isQuiescent()); |