ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/concurrent/CountedCompleter.java
(Generate patch)

Comparing jsr166/src/main/java/util/concurrent/CountedCompleter.java (file contents):
Revision 1.60 by jsr166, Mon Aug 29 20:08:08 2016 UTC vs.
Revision 1.61 by jsr166, Tue Aug 30 18:09:45 2016 UTC

# Line 152 | Line 152 | import java.lang.invoke.VarHandle;
152   *           action.accept(array[lo]);
153   *         tryComplete();
154   *       }
155 < *     }
156 < *   }}</pre>
155 > *     }}</pre>
156   *
157   * As a further optimization, notice that the left task need not even exist.
158   * Instead of creating a new one, we can continue using the original task,
# Line 171 | Line 170 | import java.lang.invoke.VarHandle;
170   *       if (n > 0)
171   *         action.accept(array[lo]);
172   *       propagateCompletion();
173 < *     }
175 < *   }}</pre>
173 > *     }}</pre>
174   *
175   * When pending counts can be precomputed, they can be established in
176   * the constructor:

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines