# | Line 1522 | Line 1522 | public class ThreadPoolExecutor extends | |
---|---|---|
1522 | */ | |
1523 | void ensurePrestart() { | |
1524 | int wc = workerCountOf(ctl.get()); | |
1525 | < | if (wc == 0) |
1526 | < | addWorker(null, false); |
1527 | < | else if (wc < corePoolSize) |
1525 | > | if (wc < corePoolSize) |
1526 | addWorker(null, true); | |
1527 | + | else if (wc == 0) |
1528 | + | addWorker(null, false); |
1529 | } | |
1530 | ||
1531 | /** |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |