On Mon, 20 Nov 2023 14:28:15 GMT, Viktor Klang <vkl...@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