On Fri, 31 May 2024 13:18:33 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 > > Doug Lea has updated the pull request incrementally with one additional > commit since the last revision: > > Reconcile changes
src/java.base/share/classes/java/util/concurrent/ForkJoinPool.java line 1345: > 1343: int b = base, p = top, cap; > 1344: if (p - b > 0 && a != null && (cap = a.length) > 0) { > 1345: for (int m = cap - 1, s, nb;;) { @DougLea I'm curious, what effect did you see if moving the `p - b > 0` out of the loop conditional? ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/19131#discussion_r1623453077