RFR: JDK-8319662 ForkJoinPool trims worker threads too slowly [v5]

Alan Bateman alanb at openjdk.org
Tue Nov 28 14:07:10 UTC 2023


On Mon, 27 Nov 2023 22:44:30 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:
> 
>   Revert 2 lines in method scan

src/java.base/share/classes/java/util/concurrent/ForkJoinPool.java line 3123:

> 3121:             throw unchecked;
> 3122:         } catch (Exception checked) {
> 3123:             throw new RuntimeException(checked);

We should probably a test that uses invoke(adaptInterruptible(callable)) to check that a checked exception is wrapped, just in case it breaks with some future change.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/16725#discussion_r1407815979


More information about the core-libs-dev mailing list