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

Comparing jsr166/src/test/tck/CountedCompleterTest.java (file contents):
Revision 1.28 by jsr166, Mon Aug 29 19:13:16 2016 UTC vs.
Revision 1.29 by jsr166, Mon Sep 12 17:49:12 2016 UTC

# Line 1880 | Line 1880 | public class CountedCompleterTest extend
1880              public void compute() {
1881                  if (hi - lo >= 2) {
1882                      int mid = (lo + hi) >>> 1;
1883 <                    setPendingCount(1); // not off by one !
1883 >                    setPendingCount(1); // looks off by one, but correct!
1884                      new Task(this, mid, hi).fork(); // right child
1885                      new Task(this, lo, mid).compute(); // direct invoke
1886                  } else {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines