RFR: 8373118: Test java/lang/Thread/virtual/Starvation.java timed out [v26]
Doug Lea
dl at openjdk.org
Wed Jan 14 14:03:16 UTC 2026
On Wed, 14 Jan 2026 13:01:14 GMT, Viktor Klang <vklang at openjdk.org> 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
More information about the core-libs-dev
mailing list