--- jsr166/src/jsr166y/ForkJoinPool.java 2010/09/01 06:40:12 1.68 +++ jsr166/src/jsr166y/ForkJoinPool.java 2010/09/01 20:12:39 1.69 @@ -346,7 +346,7 @@ public class ForkJoinPool extends Abstra * "while ((local = field) != 0)") which are usually the simplest * way to ensure the required read orderings (which are sometimes * critical). Also several occurrences of the unusual "do {} - * while(!cas...)" which is the simplest way to force an update of + * while (!cas...)" which is the simplest way to force an update of * a CAS'ed variable. There are also other coding oddities that * help some methods perform reasonably even when interpreted (not * compiled), at the expense of some messy constructions that @@ -832,9 +832,9 @@ public class ForkJoinPool extends Abstra UNSAFE.compareAndSwapInt(this, spareWaitersOffset, sw, w.nextSpare)) { int c; // increment running count before resume - do {} while(!UNSAFE.compareAndSwapInt - (this, workerCountsOffset, - c = workerCounts, c + ONE_RUNNING)); + do {} while (!UNSAFE.compareAndSwapInt + (this, workerCountsOffset, + c = workerCounts, c + ONE_RUNNING)); if (w.tryUnsuspend()) LockSupport.unpark(w); else // back out if w was shutdown @@ -1721,7 +1721,7 @@ public class ForkJoinPool extends Abstra throws InterruptedException { try { return termination.awaitAdvanceInterruptibly(0, timeout, unit) > 0; - } catch(TimeoutException ex) { + } catch (TimeoutException ex) { return false; } }