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
8258946: Fix optimization-unstable code involving signed integer overflow #1900
Conversation
…flow Optimization-unstable code refers to code that is unexpectedly discarded by compiler optimizations due to undefined behavior in the program. We applied a static checker called STACK (prototype from SOSP'13 paper [1]) to OpenJDK source code and found the following six sites of potential unstable code involving signed integer overflow. Removing undefined behaviors would make the code stable. [1] https://css.csail.mit.edu/stack/
|
Webrevs
|
@shqking This change now passes all automated pre-integration checks. After integration, the commit message for the final commit will be:
You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 19 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details. As you do not have Committer status in this project an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@TobiHartmann, @vnkozlov) but any other Committer may sponsor as well.
|
Update the copyright year to 2021. Change-Id: If1c44ff5e88accb96367bec64aa58449a97a36e5 CustomizedGitHooks: yes
Thanks for your review. @vnkozlov and @TobiHartmann Since the new commit only updates the copyright year and the pre-submits tests were passed for the first commit (See https://github.com/shqking/jdk/actions/runs/460991763/workflow), I suppose it's ready to merge now. /integrate |
/sponsor |
@nsjian @shqking Since your change was applied there have been 19 commits pushed to the
Your commit was automatically rebased without conflicts. Pushed as commit dd8996c. |
Optimization-unstable code refers to code that is unexpectedly discarded
by compiler optimizations due to undefined behavior in the program.
We applied a static checker called STACK (prototype from SOSP'13 paper
[1]) to OpenJDK source code and found the following six sites of
potential unstable code involving signed integer overflow.
Removing undefined behaviors would make the code stable.
[1] https://css.csail.mit.edu/stack/
Note that we tested locally Jtreg tests ( tier1 and jdk::tier3) were passed on Linux x86-64/aarch64 machines after apply this patch.
Progress
Issue
Reviewers
Download
$ git fetch https://git.openjdk.java.net/jdk pull/1900/head:pull/1900
$ git checkout pull/1900