RFR: JDK-8319662 ForkJoinPool trims worker threads too slowly [v6]
Viktor Klang
vklang at openjdk.org
Tue Dec 5 16:18:37 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 1970:
> 1968: Thread t = v.owner;
> 1969: v.phase = sp;
> 1970: if (v.parking != 0&& t != null) {
`if (v.parking != 0 && t != null) {`
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/16725#discussion_r1415894444
More information about the core-libs-dev
mailing list