< prev index next >

test/jdk/java/util/concurrent/tck/ForkJoinTask8Test.java

Print this page
8227235: rare failures in testForkHelpQuiesce tck tests
Reviewed-by: martin, alanb

*** 557,566 **** --- 557,568 ---- RecursiveAction a = new CheckedRecursiveAction() { protected void realCompute() { AsyncFib f = new AsyncFib(8); assertSame(f, f.fork()); helpQuiesce(); + while (!f.isDone()) // wait out race + ; assertEquals(0, getQueuedTaskCount()); f.checkCompletedNormally(); }}; testInvokeOnPool(pool, a); }
< prev index next >