2326 |
|
n |= n >>> 1; n |= n >>> 2; n |= n >>> 4; n |= n >>> 8; n |= n >>> 16; |
2327 |
|
n = (n + 1) << 1; // power of two, including space for submission queues |
2328 |
|
|
2329 |
– |
this.workQueues = new WorkQueue[n]; |
2329 |
|
this.workerNamePrefix = "ForkJoinPool-" + nextPoolId() + "-worker-"; |
2330 |
+ |
this.workQueues = new WorkQueue[n]; |
2331 |
|
this.factory = factory; |
2332 |
|
this.ueh = handler; |
2333 |
|
this.saturate = saturate; |
2386 |
|
n |= n >>> 1; n |= n >>> 2; n |= n >>> 4; n |= n >>> 8; n |= n >>> 16; |
2387 |
|
n = (n + 1) << 1; |
2388 |
|
|
2389 |
– |
this.workQueues = new WorkQueue[n]; |
2389 |
|
this.workerNamePrefix = "ForkJoinPool.commonPool-worker-"; |
2390 |
+ |
this.workQueues = new WorkQueue[n]; |
2391 |
|
this.factory = fac; |
2392 |
|
this.ueh = handler; |
2393 |
|
this.saturate = null; |