RFR: 8258946: Fix optimization-unstable code involving signed integer overflow
Hao Sun
github.com+16932759+shqking at openjdk.java.net
Mon Dec 28 10:39:03 UTC 2020
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/aarch64 machines after apply this patch.
-------------
Commit messages:
- 8258946: Fix optimization-unstable code involving signed integer overflow
Changes: https://git.openjdk.java.net/jdk/pull/1900/files
Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=1900&range=00
Issue: https://bugs.openjdk.java.net/browse/JDK-8258946
Stats: 8 lines in 3 files changed: 0 ins; 0 del; 8 mod
Patch: https://git.openjdk.java.net/jdk/pull/1900.diff
Fetch: git fetch https://git.openjdk.java.net/jdk pull/1900/head:pull/1900
PR: https://git.openjdk.java.net/jdk/pull/1900
More information about the hotspot-compiler-dev
mailing list