-
Notifications
You must be signed in to change notification settings - Fork 720
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
OpenJ9-11 Incorrect array optimizations #19014
Comments
@hzongaro fyi. I tagged 0.44 but pls move it forward if that is not appropriate. |
I was able to reproduce the ArrayIndexOutOfBoundsException with a JDK 8 build of OpenJ9 as well. I can reproduce the failure using lastOptIndex=47 but not lastOptIndex=46. This appears to be a problem with Tree Simplification.
I'm going to move this out of 0.45. The test involves an array bound check for an assignment that shouldn't be executed because of an overflow involving |
@nbhuiyan, may I ask you to look at this for the 0.45 release? |
There is a duplicate issue #19139 opened where the investigation and discussions will continue. Therefore, this issue can be closed. |
Duplicate of #19139 |
Affected versions
We found a test case with execution problems. To facilitate analysis, we simplified the test case and the simplified class file can ben found at attachment.
Linux Ubuntu20.04
Java -version output under Linux
Problem summary
This test case mainly contains a 10000 times loop in the main function and a series of array operations inside the loop, which should not throw any Exception under normal circumstances, e.g. OpenJ9-8 and Hotspot can be executed correctly, but OpenJ9-11 and OpenJ9-17 will throw an ArrayIndexOutOfBoundsException. In addition to this, we also tried setting the parameter -Xint, which also does not throw an Exception.
Steps to Reproduce
Expected Result
Actual Result
Attachment
202402261500.zip
The text was updated successfully, but these errors were encountered: