[jdk17u-dev] RFR: 8273369: Computing micros between two instants unexpectedly overflows for some cases
Roland Mesde
duke at openjdk.org
Thu Nov 13 20:00:16 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).
-------------
Commit messages:
- Backport 81d2acee57188a4507c798b46b0bd129dc302fec
Changes: https://git.openjdk.org/jdk17u-dev/pull/4181/files
Webrev: https://webrevs.openjdk.org/?repo=jdk17u-dev&pr=4181&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8273369
Stats: 61 lines in 3 files changed: 46 ins; 0 del; 15 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