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

Comparing jsr166/src/jsr166e/ForkJoinPool.java (file contents):
Revision 1.3 by jsr166, Tue Aug 14 06:00:55 2012 UTC vs.
Revision 1.4 by jsr166, Fri Oct 12 16:46:37 2012 UTC

# Line 1308 | Line 1308 | public class ForkJoinPool extends Abstra
1308          try {
1309              WorkQueue[] ws = workQueues;
1310              if (w != null && ws != null) {          // skip on shutdown/failure
1311 <                int rs, n =  ws.length, m = n - 1;
1311 >                int rs, n = ws.length, m = n - 1;
1312                  int s = nextSeed += SEED_INCREMENT; // rarely-colliding sequence
1313                  w.seed = (s == 0) ? 1 : s;          // ensure non-zero seed
1314                  int r = (s << 1) | 1;               // use odd-numbered indices

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines