RFR: 8273369: Computing micros between two instants unexpectedly overflows for some cases [v4]

Naoto Sato naoto at openjdk.java.net
Tue Sep 7 20:29:29 UTC 2021

> Please review the fix to the issue. Avoiding overflow by not calling nanosUntil() directly, which will overflow beyond Long.MAX_VALUE difference in nano unit.

Naoto Sato has updated the pull request incrementally with one additional commit since the last revision:

  Moved the constant to LocalTime for consistency.


  - all: https://git.openjdk.java.net/jdk/pull/5396/files
  - new: https://git.openjdk.java.net/jdk/pull/5396/files/7d567e8b..bbd6abc3

 - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=5396&range=03
 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=5396&range=02-03

  Stats: 10 lines in 2 files changed: 5 ins; 4 del; 1 mod
  Patch: https://git.openjdk.java.net/jdk/pull/5396.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/5396/head:pull/5396

PR: https://git.openjdk.java.net/jdk/pull/5396

More information about the core-libs-dev mailing list