RFR: JDK-8319662 ForkJoinPool trims worker threads too slowly [v6]
Viktor Klang
vklang at openjdk.org
Tue Dec 5 16:23:40 UTC 2023
On Sun, 3 Dec 2023 17:13:49 GMT, Doug Lea <dl at openjdk.org> wrote:
>> This update cascades timeouts to trim subsequent workers after the first keepAlive inactive period.
>
> Doug Lea has updated the pull request incrementally with one additional commit since the last revision:
>
> Reduce oversignalling and contention; add test
src/java.base/share/classes/java/util/concurrent/ForkJoinPool.java line 2096:
> 2094: * Tries to inactivate, and if successful, awaits signal or termination.
> 2095: *
> 2096: * @param w the worker (may be null if already terminated)
Technically `w` is `WorkQueue` not `ForkJoinWorkerThread` so perhaps s/worker/work queue?
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/16725#discussion_r1415905526
More information about the core-libs-dev
mailing list