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

Doug Lea dl at openjdk.org
Tue Nov 21 15:03:10 UTC 2023


On Mon, 20 Nov 2023 14:28:15 GMT, Viktor Klang <vklang at openjdk.org> wrote:

>> It would be better, but absolute-time Unsafe.park only operates at millisecond accuracy (and even at that may misfire early, requiring TIMEOUT_SLOP.)
>
> I was thinking more about cases where system clock moves backwards in time. (currentTimeMillis() isn't spec:ed to be monotonic, right?)

Yes. But because this is a performance not correctness issue, it's OK to (rarely) speed up or slow down trims.

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

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


More information about the core-libs-dev mailing list