ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/loops/FJSums.java
(Generate patch)

Comparing jsr166/src/test/loops/FJSums.java (file contents):
Revision 1.9 by dl, Sat Sep 12 18:40:09 2015 UTC vs.
Revision 1.10 by jsr166, Sat Sep 12 18:59:49 2015 UTC

# Line 148 | Line 148 | public class FJSums {
148          final int lo, hi;
149          long in, out;
150  
151 <        Cumulater(Cumulater parent, LongByLongToLong function,
151 >        Cumulater(Cumulater parent, LongByLongToLong function,
152                    long[] array, int lo, int hi) {
153              super(parent);
154              this.function = function; this.array = array;
# Line 206 | Line 206 | public class FJSums {
206                      for (int b;;) {
207                          if (((b = t.getPendingCount()) & FINISHED) != 0)
208                              break outer;                      // already done
209 <                        state = ((b & CUMULATE) != 0? FINISHED :
210 <                                 (l > 0) ? SUMMED : (SUMMED|FINISHED));
209 >                        state = (((b & CUMULATE) != 0)
210 >                                 ? FINISHED
211 >                                 : (l > 0) ? SUMMED : (SUMMED|FINISHED));
212                          if (t.compareAndSetPendingCount(b, b|state))
213                              break;
214                      }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines