103 |
|
* java.util.concurrent.ForkJoinPool.common}: {@code parallelism} -- |
104 |
|
* an integer greater than zero, {@code threadFactory} -- the class |
105 |
|
* name of a {@link ForkJoinWorkerThreadFactory}, and {@code |
106 |
– |
<<<<<<< ForkJoinPool.java |
107 |
– |
* exceptionHandler} -- the class name of a {@code |
108 |
– |
======= |
106 |
|
* exceptionHandler} -- the class name of a {@link |
107 |
|
* java.lang.Thread.UncaughtExceptionHandler |
111 |
– |
>>>>>>> 1.111 |
108 |
|
* Thread.UncaughtExceptionHandler}. Upon any error in establishing |
109 |
|
* these settings, default parameters are used. |
110 |
|
* |
2476 |
|
throw new IllegalArgumentException(); |
2477 |
|
this.factory = factory; |
2478 |
|
this.ueh = handler; |
2479 |
< |
this.config = parallelism | (asyncMode? (FIFO_QUEUE << 16) : 0); |
2479 |
> |
this.config = parallelism | (asyncMode ? (FIFO_QUEUE << 16) : 0); |
2480 |
|
long np = (long)(-parallelism); // offset ctl counts |
2481 |
|
this.ctl = ((np << AC_SHIFT) & AC_MASK) | ((np << TC_SHIFT) & TC_MASK); |
2482 |
|
int pn = nextPoolId(); |