On Thu, 8 Jan 2026 18:52:32 GMT, Doug Lea <[email protected]> wrote:

>> Changes signal filtering to avoid possible starvation
>
> Doug Lea has updated the pull request incrementally with two additional 
> commits since the last revision:
> 
>  - Undo unrelated change
>  - Re-introduce acquiring array reads; re-arrange to rely on volatile base 
> index

src/java.base/share/classes/java/util/concurrent/ForkJoinPool.java line 1261:

> 1259:                 if (U.getReferenceAcquire(a, slotOffset(m & (s - 1))) 
> == null &&
> 1260:                     pool != null)
> 1261:                     pool.signalWork(this, s); // may have appeared empty

@DougLea I really like how push turned out here, it's arguably one of the most 
elegant versions of this method.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/28797#discussion_r2674262607

Reply via email to