219 |
|
* threads, packed into one int to ensure consistent snapshot when |
220 |
|
* making decisions about creating and suspending spare |
221 |
|
* threads. Updated only by CAS. Note: CASes in |
222 |
< |
* updateRunningCount and preJoin running active count is in low |
223 |
< |
* word, so need to be modified if this changes |
222 |
> |
* updateRunningCount and preJoin assume that running active count |
223 |
> |
* is in low word, so need to be modified if this changes. |
224 |
|
*/ |
225 |
|
private volatile int workerCounts; |
226 |
|
|
433 |
|
|
434 |
|
/** |
435 |
|
* Creates or resizes array if necessary to hold newLength. |
436 |
< |
* Call only under exclusion or lock. |
436 |
> |
* Call only under exclusion. |
437 |
> |
* |
438 |
|
* @return the array |
439 |
|
*/ |
440 |
|
private ForkJoinWorkerThread[] ensureWorkerArrayCapacity(int newLength) { |