-
Notifications
You must be signed in to change notification settings - Fork 232
8273369: Computing micros between two instants unexpectedly overflows for some cases #4181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
👋 Welcome back rm-gh-8! A progress list of the required criteria for merging this PR into |
|
❗ This change is not yet ready to be integrated. |
|
This backport pull request has now been updated with issue from the original commit. |
Webrevs
|
|
/approval request for backport of JDK-8273369: Computing micros between two instants unexpectedly overflows for some cases. Ran the updated and related tests on linux-x64, linux-aarch64, macos-aarch64 and windows-x64: (All Passed) - make test TEST=test/jdk/java/time Results are attached. |
phohensee
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The source of the merge conflict in Instant.java is changing to a switch expression, which we don't want to do here. Please leave it as is, and patch the original switch instead.
|
Reverted |
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).
Progress
Issue
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk17u-dev.git pull/4181/head:pull/4181$ git checkout pull/4181Update a local copy of the PR:
$ git checkout pull/4181$ git pull https://git.openjdk.org/jdk17u-dev.git pull/4181/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 4181View PR using the GUI difftool:
$ git pr show -t 4181Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk17u-dev/pull/4181.diff
Using Webrev
Link to Webrev Comment