-
Notifications
You must be signed in to change notification settings - Fork 736
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
OpenJDK CompactString/MaxSizeUTF16String testMaxCharArray() expects OOM but gets NegativeArraySizeException with JIT #19309
Comments
@hzongaro fyi |
@pshipton, I don't seem to be able to reproduce this problem with the simplified test running jdk-17.0.10+7 on xLinux. Are you able to point me to the grinder run? |
Here is a grinder that shows it https://openj9-jenkins.osuosl.org/view/Test/job/Grinder/3473 I have no problem reproducing it on my laptop, using the 17.0.10 (0.43) release. Also if I run |
It seems that I needed to adjust the heap size in order to observe the
|
I was able to reproduce this with 17.0.5+8, so it's not a recent regression:
|
Or even at least as far back as 17.0.2+8, if I'm selective about what is compiled:
|
It looks like Recognized Call Transformer transforms this IL:
into this:
The length value of 2^31 is left shifted by 1 at instruction |
Issue eclipse-openj9/openj9#19309 Signed-off-by: Peter Shipton <[email protected]>
Excluding the test via adoptium/aqa-tests#5251 for now. |
Issue eclipse-openj9/openj9#19309 Signed-off-by: Peter Shipton <[email protected]>
@hzongaro Is this specifically related to JDK23 (or reproducible only on JDK23)? |
No - it's a long-standing problem. I was able to reproduce it as far back as JDK 17.0.2+8 by adjusting the heap size, and by being selective about what was compiled. |
Ideally it should be fixed in jdk23 so we can unexclude the test, but if it needs to move it can. |
Reopen as the fix needs to be triple delivered (0.47, 0.48), and the test unexcluded. |
Issue eclipse-openj9/openj9#19309 Signed-off-by: Peter Shipton <[email protected]>
Created adoptium/aqa-tests#5513 to unexclude. |
…5513) Issue eclipse-openj9/openj9#19309 Signed-off-by: Peter Shipton <[email protected]>
…doptium#5513) Issue eclipse-openj9/openj9#19309 Signed-off-by: Peter Shipton <[email protected]>
…5513) (#5515) Issue eclipse-openj9/openj9#19309 Signed-off-by: Peter Shipton <[email protected]>
There is still a failure after unexcluding the test, but I don't think it's the same cause, I've opened a new issue. |
jdk23 testing on amac. This also occurs with jdk-21.0.2+13 or jdk-17.0.10+7 on xLinux. It does not occur with jdk-17.0.9+9 so likely there is a change between 0.41 and 0.43 causing this.
From a grinder on
java/lang/String/CompactString/MaxSizeUTF16String.java
This can be duplicated with the following, when running with
-Xjit:count=0
. When running without or with -Xint, the expected OOM error occurs (shown below).The text was updated successfully, but these errors were encountered: