Hi all, According to javadoc current implementation of ThreadPoolExecutor packs two conceptual fields ‘workerCount’ and ‘runState’ into one actual field ‘ctl’ of type AtomicInteger.
Could you please explain are there any performance or other benefits for this? It seems to complicate the class design and I can’t find the positive side of this. Thanks, Alex