# | 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 { |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |