On Sat, 20 Sep 2025 17:32:31 GMT, Doug Lea <[email protected]> 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 2118:
> 2116: private int tryTrim(WorkQueue w, int activePhase, long deadline) {
> 2117: long c, nc; int stat, vp, i; WorkQueue[] vs; WorkQueue v;
> 2118: long waitTime = deadline - System.currentTimeMillis();
Why hoist this line from the branch? 🤔
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/26479#discussion_r2367691693