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 |
1519 |
|
* awaiting signal, |
1520 |
|
* |
1521 |
|
* @param w the worker (via its WorkQueue) |
1522 |
< |
* @return a task or null of none found |
1522 |
> |
* @return a task or null if none found |
1523 |
|
*/ |
1524 |
|
private final ForkJoinTask<?> scan(WorkQueue w) { |
1525 |
|
WorkQueue[] ws; // first update random seed |