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 1916:

> 1914:      */
> 1915:     private long releaseAll() {
> 1916:         long c = ctl;

`ctl` is not re-read inside the endless loop, is there any risk for a stale 
`ctl` to make `releaseAll()` never terminate?

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/19131#discussion_r1597522945

Reply via email to