106 |
|
assertNull(a.join()); |
107 |
|
assertFalse(a.cancel(false)); |
108 |
|
assertFalse(a.cancel(true)); |
109 |
+ |
|
110 |
+ |
Object v1 = null, v2 = null; |
111 |
|
try { |
112 |
< |
assertNull(a.get()); |
113 |
< |
assertNull(a.get(randomTimeout(), randomTimeUnit())); |
112 |
> |
v1 = a.get(); |
113 |
> |
v2 = a.get(randomTimeout(), randomTimeUnit()); |
114 |
|
} catch (Throwable fail) { threadUnexpectedException(fail); } |
115 |
+ |
assertNull(v1); |
116 |
+ |
assertNull(v2); |
117 |
|
} |
118 |
|
|
119 |
|
void checkCancelled(ForkJoinTask a) { |
1534 |
|
* timeout elapsed |
1535 |
|
*/ |
1536 |
|
public void testAwaitQuiescence2() throws Exception { |
1537 |
< |
/** |
1537 |
> |
/* |
1538 |
|
* """It is possible to disable or limit the use of threads in the |
1539 |
|
* common pool by setting the parallelism property to zero. However |
1540 |
|
* doing so may cause unjoined tasks to never be executed.""" |