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.58 by jsr166, Mon Aug 29 19:13:16 2016 UTC vs.
Revision 1.59 by jsr166, Mon Aug 29 19:42:54 2016 UTC

# Line 115 | Line 115 | import java.lang.invoke.VarHandle;
115   *     Task(Task parent, int lo, int hi) {
116   *       super(parent); this.lo = lo; this.hi = hi;
117   *     }
118 < *
118 > *
119   *     public void compute() {
120   *       if (hi - lo >= 2) {
121   *         int mid = (lo + hi) >>> 1;
# Line 185 | Line 185 | import java.lang.invoke.VarHandle;
185   *       super(parent, 31 - Integer.numberOfLeadingZeros(hi - lo));
186   *       this.lo = lo; this.hi = hi;
187   *     }
188 < *
188 > *
189   *     public void compute() {
190   *       for (int n = hi - lo; n >= 2; n /= 2)
191   *         new Task(this, lo + n/2, lo + n).fork();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines