--- jsr166/src/jsr166y/ForkJoinTask.java 2010/09/18 12:10:21 1.63 +++ jsr166/src/jsr166y/ForkJoinTask.java 2010/10/16 16:37:30 1.65 @@ -261,7 +261,7 @@ public abstract class ForkJoinTask im int s; while ((s = status) >= 0) { synchronized (this) { - if (UNSAFE.compareAndSwapInt(this, statusOffset, s, SIGNAL)){ + if (UNSAFE.compareAndSwapInt(this, statusOffset, s, SIGNAL)) { boolean interrupted = false; while (status >= 0) { try { @@ -661,7 +661,7 @@ public abstract class ForkJoinTask im else { while ((s = status) >= 0) { synchronized (this) { // interruptible form of awaitDone - if (UNSAFE.compareAndSwapInt(this, statusOffset, + if (UNSAFE.compareAndSwapInt(this, statusOffset, s, SIGNAL)) { while (status >= 0) wait();