RFR: 8360046: Scalability issue when submitting virtual threads with almost empty tasks [v10]
Viktor Klang
vklang at openjdk.org
Mon Sep 22 10:22:09 UTC 2025
On Sat, 20 Sep 2025 17:32:31 GMT, Doug Lea <dl at openjdk.org> wrote:
>> This set of updates reduces contention-based performance loss under heavy over-subscription, while also improving perfomance more generally.
>
> Doug Lea has updated the pull request incrementally with one additional commit since the last revision:
>
> Add @Contended WorkQueue region. Adapt accordingly.
src/java.base/share/classes/java/util/concurrent/ForkJoinPool.java line 1320:
> 1318: (t = (ForkJoinTask<?>)U.getAndSetReference(a, k, null)) != null)
> 1319: updateTop(s);
> 1320: return t;
Nice!
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/26479#discussion_r2367464512
More information about the core-libs-dev
mailing list