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 2059:
> 2057: if (idle != 0 && (runState & STOP) == 0L) {
> 2058: int noise = (phase ^ (phase >>> 16)) & (SPIN_WAITS - 1);
> 2059: int spins = (SPIN_WAITS << 1) | noise;
@DougLea Haha, it's a funny coincidence, because just last night I was thinking
we should try a randomized backoff, and now I saw this. :)
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/28797#discussion_r2702938962