[jdk17u-dev] RFR: 8273369: Computing micros between two instants unexpectedly overflows for some cases [v2]

Roland Mesde duke at openjdk.org
Tue Dec 2 17:00:55 UTC 2025


On Tue, 18 Nov 2025 21:49:25 GMT, Roland Mesde <duke at openjdk.org> wrote:

>> Backporting JDK-8273369: Computing micros between two instants unexpectedly overflows for some cases. Avoids overflow by not calling nanosUntil() directly, which will overflow beyond Long.MAX_VALUE difference in nano unit.
>> 
>> Ran GHA Sanity Checks (passed) and related test (passed).
>
> Roland Mesde has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Reverted swtch statement (reviewer requested)

Withdrawing and cancelling PR.

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

PR Comment: https://git.openjdk.org/jdk17u-dev/pull/4181#issuecomment-3603057588


More information about the jdk-updates-dev mailing list