On Sun, 18 Jan 2026 21:07:48 GMT, Doug Lea <[email protected]> wrote:

>> Changes signal filtering to avoid possible starvation
>
> Doug Lea has updated the pull request incrementally with one additional 
> commit since the last revision:
> 
>   Simplify scan mode control by moving and reworking topLevelExec and 
> throwing on trim

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

> 1948:                             if (q.array == a && q.base == b &&
> 1949:                                 U.getReference(a, bp) == t) {
> 1950:                                 if (t == null) {

@DougLea Does it make any difference if we only confirm `t` in case of null, 
and if that now shows anything different, we can use that for the later CAS?


                            if (q.array == a && q.base == b) {
                                if (t == null && (t = 
(ForkJoinTask<?>)U.getReference(a, bp)) == null) {

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

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

Reply via email to