Packing 2 data points into 1 field in ThreadPoolExecutor
alexyursha at gmail.com
Sat Nov 29 16:13:19 UTC 2014
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.
More information about the core-libs-dev