RFR: 8357539: TimeSource.now() is not monotonic
Daniel Jeliński
djelinski at openjdk.org
Thu May 22 15:53:52 UTC 2025
On Thu, 22 May 2025 10:52:44 GMT, Daniel Fuchs <dfuchs at openjdk.org> wrote:
>> Hello Daniel, with this proposed change, is there any reason to have the `localSource` field in this `TimeSource` anymore?
>
> Yes. It avoids the volatile read on nanoSource.
It could serve as a safety net. But I can also revert this and add the assert mentioned in the PR description.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/25390#discussion_r2102888330
More information about the net-dev
mailing list