-
Notifications
You must be signed in to change notification settings - Fork 729
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
JDK11 JDK17 Different Result from Xint #15534
Comments
If there are other options that are helpful for me to diagnose new problems, feel free to let me know. |
Perhaps it fails when JIT compiler optimizes |
@0xdaryl fyi |
Running the test with the option As the problem is easily reproduced, and we have a pretty good idea which optimization is causing the problem, I think we can keep this targeted for 0.35. |
I've been experimenting with a fix for this problem. Unfortunately, although it seems to fix this issue, it doesn't fix #15306, so there might be more than one distinct problem in this optimization. As any fix has the potential to affect performance and correctness, it might be safer to defer this from the 0.35 release so we aren't rushing in a fix. @pshipton |
Duplicate of #15306 |
@hzongaro Could you tell me which test case (the original one or the one commented in 27 July) this one is duplicate to? And do I need to open a new thread for the one commented in 27 July? |
@connglli It was the original one that this duplicates. Sorry for not being clear!
No need to open a new issue - the proposed changes in OMR pull request eclipse-omr/omr#6747 fix both of those problems. |
Fixed by OMR pull request eclipse-omr/omr#6747 |
Java -version output
Summary of problem
The following test is a bit tricky. It gives a different result from
-Xint
. But cannot understand which JIT level causes the test to fail. So it should be different from #15306 (from scorching) and #15347 (from hot).It affects both JDK11 and JDK17.
Results of OpenJ9-Xint (HotSpot/ART also give the same result):
Results of OpenJ9:
Diagnosis
Only two methods in
Test
are compiled:It seems the compilation of
Test.vMeth1()
causes this failure because if you exclude it the result becomes correct (excludingTest.vMeth()
makes no effects):But with
-Xjit
option, no matter which JIT level you try, the bug never reappears:As a comparison, 15306 can reproduce its bug from scorching and 15347 from hot. So I guess this is a different new one.
The text was updated successfully, but these errors were encountered: