--- jsr166/src/test/loops/LeftSpineFib.java 2015/01/15 18:34:19 1.6 +++ jsr166/src/test/loops/LeftSpineFib.java 2015/09/12 19:06:29 1.7 @@ -31,22 +31,16 @@ public final class LeftSpineFib extends } for (int reps = 0; reps < 2; ++reps) { - ForkJoinPool g = (procs == 0) ? new ForkJoinPool() : + ForkJoinPool g = (procs == 0) ? ForkJoinPool.commonPool() : new ForkJoinPool(procs); - // g.setMaintainsParallelism(false); lastStealCount = g.getStealCount(); for (int i = 0; i < 20; ++i) { test(g, num); - Thread.sleep(50); + Thread.sleep(100); } System.out.println(g); - g.shutdown(); - if (!g.awaitTermination(8, TimeUnit.SECONDS)) { - System.out.println(g); - throw new Error(); - } - g = null; - // System.gc(); + if (g != ForkJoinPool.commonPool()) + g.shutdown(); Thread.sleep(500); } }