RFR: 8319447: Improve performance of delayed task handling [v2]
Alan Bateman
alanb at openjdk.org
Fri Feb 21 17:33:53 UTC 2025
On Fri, 21 Feb 2025 12:52:10 GMT, Doug Lea <dl at openjdk.org> wrote:
>> src/java.base/share/classes/java/util/concurrent/ForkJoinPool.java line 3537:
>>
>>> 3535: * pool is {@link #shutdownNow}, or is {@link #shutdown} when
>>> 3536: * otherwise quiescent and {@link #cancelDelayedTasksOnShutdown}
>>> 3537: * is in effect.
>>
>> In passing, I'm wondering if we should if the term "enabled" should be defined somewhere. SES uses it but it doesn't appear to define it.
>
> Added:
> Delayed actions become <em>enabled</em> and behave as ordinary submitted tasks when their delays elapse.
Thanks. Also here we have ".. after the given delay, At which" so need to smooth that out.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/23702#discussion_r1965919783
More information about the core-libs-dev
mailing list