On Wed, 14 Jan 2026 13:01:14 GMT, Viktor Klang <[email protected]> wrote:

>> Doug Lea has updated the pull request incrementally with one additional 
>> commit since the last revision:
>> 
>>   Another set of contend vs deactivate vs park tradeoffs
>
> src/java.base/share/classes/java/util/concurrent/ForkJoinPool.java line 1988:
> 
>> 1986:                     }
>> 1987:                 }
>> 1988:                 if (rescans > 0)
> 
> If avoiding arithmetic turns out successful, we might just introduce `static 
> final` constants and treat this as a regular state machine :)

Ideally, runWorker would take its original form:
while(scanState != stop)  scanState = scan(scanState, ...);
But there are too many bits of state, and sometimes-slow encoding/decoding to 
do this. But I'll look into some compromises.

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

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

Reply via email to