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

Comparing jsr166/src/main/java/util/concurrent/ForkJoinPool.java (file contents):
Revision 1.239 by jsr166, Tue Feb 17 18:55:39 2015 UTC vs.
Revision 1.240 by jsr166, Mon Feb 23 20:54:08 2015 UTC

# Line 1788 | Line 1788 | public class ForkJoinPool extends Abstra
1788              else if (spins > 0) {
1789                  r ^= r << 6; r ^= r >>> 21; r ^= r << 7;
1790                  if (r >= 0 && --spins == 0) {         // randomize spins
1791 <                    WorkQueue v; WorkQueue[] ws; int s, j; AtomicLong sc;
1791 >                    WorkQueue v; WorkQueue[] ws; int j;
1792                      if (pred != 0 && (ws = workQueues) != null &&
1793                          (j = pred & SMASK) < ws.length &&
1794                          (v = ws[j]) != null &&        // see if pred parking

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines