-
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
Compilation Fails even from noOpt Level #15369
Comments
@0xdaryl fyi |
No problem reproducing this. |
I will take a look at this |
This is not a regression in 0.33. Reproducible on JDK8 back to at least 0.29. |
This looks like a DTL issue. I duplicated the call to mainTest() a number of times. The result was zero only on the first iteration. Disabling DLT achieved the correct result in all cases. |
Looks like the type information is not preserved for the DLT compile where byArr is stored. During IL-Gen all stores into byArr are assumed to be storing to a boolean array. BoolArrayStoreTransformer truncates the store to 1-bit with iand (n163n)
|
The fix won't have enough soaking time before I am confident to commit it to 0.33 at this stage. This is not a regression, so moving this out to 0.34. @pshipton |
On DLT compiles full analysis is needed because not all bytecodes are translated into IL. Autos and/or checkcast operations of type boolean[] and byte[] may exist. Fixes eclipse-openj9#15369 Signed-off-by: BradleyWood <[email protected]>
Java -version output
Summary of problem
Looks like the test fails from
noOpt
level, so it should be different from #15306 and #15347. This affects both JDK11 and JDK8.Results of OpenJ9:
Results of OpenJ9-Xint (HotSpot/ART also give the same result):
Diagnosis
If you exclude
Test.mainTest()
from compilation, then it gives the same result as HotSpot/ART/OpenJ9-XintBut if you compile
Test.mainTest()
even fromnoOpt
level, it gives0
againSo I reckon this to be different from 15306 (scorching) and 15347 (hot). (So is JDK8.)
The text was updated successfully, but these errors were encountered: