On Tue, 7 May 2024 22:50:18 GMT, Doug Lea <d...@openjdk.org> wrote: > This set of changes address causes of poor utilization with small numbers of > cores due to overly aggressive contention avoidance. A number of further > adjustments were needed to still avoid most contention effects in deployments > with large numbers of cores
src/java.base/share/classes/java/util/concurrent/ForkJoinPool.java line 2167: > 2165: } > 2166: } > 2167: return stat; @DougLea Since `stat` is a local, and is only written to once per branch it might make sense to just return from each of the branches? ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/19131#discussion_r1596448632