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.62 by jsr166, Sat Sep 10 04:06:51 2016 UTC vs.
Revision 1.63 by jsr166, Mon Sep 12 17:49:12 2016 UTC

# Line 144 | Line 144 | import java.lang.invoke.VarHandle;
144   *     public void compute() {
145   *       if (hi - lo >= 2) {
146   *         int mid = (lo + hi) >>> 1;
147 < *         setPendingCount(1); // not off by one !
147 > *         setPendingCount(1); // looks off by one, but correct!
148   *         new Task(this, mid, hi).fork(); // right child
149   *         new Task(this, lo, mid).compute(); // direct invoke
150   *       } else {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines