8227235: rare failures in testForkHelpQuiesce tck tests
Reviewed-by: martin, alanb
This commit is contained in:
parent
80fe274875
commit
f634f777f6
@ -559,6 +559,8 @@ public class ForkJoinTask8Test extends JSR166TestCase {
|
||||
AsyncFib f = new AsyncFib(8);
|
||||
assertSame(f, f.fork());
|
||||
helpQuiesce();
|
||||
while (!f.isDone()) // wait out race
|
||||
;
|
||||
assertEquals(0, getQueuedTaskCount());
|
||||
f.checkCompletedNormally();
|
||||
}};
|
||||
|
@ -526,6 +526,8 @@ public class ForkJoinTaskTest extends JSR166TestCase {
|
||||
AsyncFib f = new AsyncFib(8);
|
||||
assertSame(f, f.fork());
|
||||
helpQuiesce();
|
||||
while (!f.isDone()) // wait out race
|
||||
;
|
||||
assertEquals(21, f.number);
|
||||
assertEquals(0, getQueuedTaskCount());
|
||||
checkCompletedNormally(f);
|
||||
|
Loading…
x
Reference in New Issue
Block a user