RFR: 8360046: Scalability issue when submitting virtual threads with almost empty tasks [v22]

Doug Lea dl at openjdk.org
Sun Nov 30 18:05:52 UTC 2025


On Thu, 27 Nov 2025 15:49:54 GMT, Viktor Klang <vklang at openjdk.org> wrote:

>> Doug Lea has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   For testing
>
> src/java.base/share/classes/java/util/concurrent/ForkJoinPool.java line 1435:
> 
>> 1433:          */
>> 1434:         final void topLevelExec(ForkJoinTask<?> task, int cfg) {
>> 1435:             int fifo = cfg & FIFO, clr = cfg & CLEAR_TLS;
> 
> @DougLea `clr` isn't used (so there's no clearing of TLs)

This was transiently clobbered but reinstated elsewhere.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/26479#discussion_r2574391655


More information about the core-libs-dev mailing list