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
The nightly build (jdk-9+181-20 on January 22 2018) has different behaviors on Xcomp and default mode. #997
Comments
The OpenJDK definition is |
@andrewcraik i wonder if you or your delegate would like to take a look at this one? |
@andrewcraik Sorry, this may not be an issue. It seems that the optimization of OpenJ9 removes the unused allocation, while HotSpot does not. The JVM specification specifies that https://docs.oracle.com/javase/specs/jvms/se9/html/jvms-6.html#jvms-6.5.anewarray |
Thanks for the interesting test case @tianxiaogu This may need some thought. Trivial cases have the expected behaviour, e.g.
gives the expected
results in
|
@JamesKingdon interesting - the main issue will likely be that we can't tell that the float is negative. A compile log will be necessary. It would be good to confirm the opt level this failed at and, if it is a cold compile, see what happens in the warm compile. Regardless, there is a bug to be fixed here. |
Compilation was at warm, I will attach the log. The newarray was eliminated at line 1508 by deadTreesElimination. |
@JamesKingdon / @andrewcraik Any updates on this? |
Hi Dan, nothing to the best of my knowledge. |
The nightly build (jdk-9+181-20 on January 22 2018 Linux x64) has different behaviors on Xcomp and default mode.
C0.class
Default:
A NegativeArraySizeException is thrown
Xcomp:
exit normally with 0
The head of OpenJDK throws an exception.
Oracle JDK 9 throws an exception.
OpenJDK 8 also throws an exception.
The text was updated successfully, but these errors were encountered: