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

Comparing jsr166/src/jsr166y/ForkJoinPool.java (file contents):
Revision 1.149 by dl, Wed Nov 21 19:54:39 2012 UTC vs.
Revision 1.151 by jsr166, Thu Nov 22 18:14:57 2012 UTC

# Line 99 | Line 99 | import java.util.concurrent.TimeUnit;
99   *
100   * <p>The common pool is by default constructed with default
101   * parameters, but these may be controlled by setting three {@link
102 < * System#getProperty properties} with prefix {@code
102 > * System#getProperty system properties} with prefix {@code
103   * java.util.concurrent.ForkJoinPool.common}: {@code parallelism} --
104   * an integer greater than zero, {@code threadFactory} -- the class
105   * name of a {@link ForkJoinWorkerThreadFactory}, and {@code
# Line 1788 | Line 1788 | public class ForkJoinPool extends Abstra
1788          WorkQueue[] ws; WorkQueue w; Thread p; long c; int m, u, e, i, s;
1789          if ((u = (int)(ctl >>> 32)) < 0 && (u >> UAC_SHIFT) < 0 &&
1790              (ws = workQueues) != null && (m = ws.length - 1) >= 0) {
1791 <            outer: for (int k = origin, j = once? 0 : m; j >= 0; --j) {
1791 >            outer: for (int k = origin, j = once ? 0 : m; j >= 0; --j) {
1792                  WorkQueue q = ws[k++ & m];
1793                  for (int n = m;;) { // limit to at most m signals
1794                      if (task != null && task.status < 0)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines