26 |
|
static ForkJoinPool defaultExecutor() { |
27 |
|
ForkJoinPool p = defaultExecutor; // double-check |
28 |
|
if (p == null) { |
29 |
< |
synchronized(poolLock) { |
29 |
> |
synchronized (poolLock) { |
30 |
|
p = defaultExecutor; |
31 |
|
if (p == null) { |
32 |
|
// use ceil(7/8 * ncpus) |
2352 |
|
} |
2353 |
|
else break; |
2354 |
|
} |
2355 |
< |
|
2355 |
> |
|
2356 |
|
if (sameLefts && right == hi - 1) |
2357 |
|
return; |
2358 |
|
if (left - lo <= hi - right) { |
2529 |
|
} |
2530 |
|
else break; |
2531 |
|
} |
2532 |
< |
|
2532 |
> |
|
2533 |
|
if (sameLefts && right == hi - 1) |
2534 |
|
return; |
2535 |
|
if (left - lo <= hi - right) { |