RFR: 8360046: Scalability issue when submitting virtual threads with almost empty tasks [v5]
Viktor Klang
vklang at openjdk.org
Mon Aug 11 16:46:10 UTC 2025
On Thu, 7 Aug 2025 14:03:40 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:
>
> Avoid underutilization on resize
src/java.base/share/classes/java/lang/VirtualThread.java line 324:
> 322: } else {
> 323: executor.execute(task);
> 324: }
Is this worth special-casing—IIRC FJP::submit adapts the task if needed already.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/26479#discussion_r2267395539
More information about the core-libs-dev
mailing list