[jdk17u-dev] RFR: 8273369: Computing micros between two instants unexpectedly overflows for some cases [v2]
Roland Mesde
duke at openjdk.org
Tue Nov 18 21:49:25 UTC 2025
> 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)
-------------
Changes:
- all: https://git.openjdk.org/jdk17u-dev/pull/4181/files
- new: https://git.openjdk.org/jdk17u-dev/pull/4181/files/52b1391b..658eb7bd
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk17u-dev&pr=4181&range=01
- incr: https://webrevs.openjdk.org/?repo=jdk17u-dev&pr=4181&range=00-01
Stats: 11 lines in 1 file changed: 0 ins; 0 del; 11 mod
Patch: https://git.openjdk.org/jdk17u-dev/pull/4181.diff
Fetch: git fetch https://git.openjdk.org/jdk17u-dev.git pull/4181/head:pull/4181
PR: https://git.openjdk.org/jdk17u-dev/pull/4181
More information about the jdk-updates-dev
mailing list