Integrated: 8273369: Computing micros between two instants unexpectedly overflows for some cases

Naoto Sato naoto at openjdk.java.net
Fri Sep 10 16:40:49 UTC 2021


On Tue, 7 Sep 2021 18:18:49 GMT, Naoto Sato <naoto at openjdk.org> wrote:

> 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.

This pull request has now been integrated.

Changeset: 81d2acee
Author:    Naoto Sato <naoto at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/81d2acee57188a4507c798b46b0bd129dc302fec
Stats:     52 lines in 3 files changed: 46 ins; 0 del; 6 mod

8273369: Computing micros between two instants unexpectedly overflows for some cases

Reviewed-by: lancea, rriggs, joehw

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

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


More information about the core-libs-dev mailing list