On Wed, 21 Jan 2026 16:35:41 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:
>
> Try out different approach
src/java.base/share/classes/java/util/concurrent/ForkJoinPool.java line 1303:
> 1301: U.putReferenceVolatile(this, ARRAY, newArray);
> 1302: if (unlock != 1)
> 1303: phase = unlock;
Not sure if it helps, but if we can piggyback on the volatile write to phase,
then we could structure it like so:
if (unlock != 1) {
U.putReference(this, ARRAY, newArray);
phase = unlock;
} else {
U.putReferenceVolatile(this, ARRAY, newArray);
}
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/28797#discussion_r2721138435