609 |
|
* ForkJoinPool and WorkQueues and their queue arrays. To reduce |
610 |
|
* false-sharing impact, the @Contended annotation isolates the |
611 |
|
* ForkJoinPool.ctl field as well as the most heavily written |
612 |
< |
* WorkQueue fields. These mainy reduce cache traffic by scanners. |
612 |
> |
* WorkQueue fields. These mainly reduce cache traffic by scanners. |
613 |
|
* WorkQueue arrays are presized large enough to avoid resizing |
614 |
|
* (which transiently reduces throughput) in most tree-like |
615 |
|
* computations, although not in some streaming usages. Initial |
670 |
|
* * ForkJoinTask now uses field "aux" to support blocking joins |
671 |
|
* and/or record exceptions, replacing reliance on builtin |
672 |
|
* monitors and side tables. |
673 |
< |
* * Scans probe slots (vs compare indices), alonmg with related |
673 |
> |
* * Scans probe slots (vs compare indices), along with related |
674 |
|
* changes that reduce performance differences across most |
675 |
|
* garbage collectors, and reduces contention. |
676 |
|
* * Refactoring for better integration of special task types and |
2561 |
|
|
2562 |
|
/** |
2563 |
|
* Creates, records, and forks a BulkTask for each Callable; |
2564 |
< |
* returns the array, with first element root task (if noneepty) |
2564 |
> |
* returns the array, with first element root task (if nonempty) |
2565 |
|
*/ |
2566 |
|
static <T> BulkTask<T>[] forkAll(Collection<? extends Callable<T>> cs, |
2567 |
|
boolean invokeAny) { |