[9] RFR(S): 8080156: Integer.toString(int value) sometimes throws NPE

Tobias Hartmann tobias.hartmann at oracle.com
Thu May 21 18:51:46 UTC 2015


Hi,

this is a follow up RFR on JDK-8060036 [1] that adds a regression test I used while investigating JDK-8080156 which turned out to be a duplicate.

https://bugs.openjdk.java.net/browse/JDK-8080156
http://cr.openjdk.java.net/~thartmann/8080156/webrev.00/

The test triggers a range check that is implemented with a CmpUNode. If type information is not propagated correctly to the CmpUNode, the range check trap is always taken. Because C2 also removes the unnecessary buffer allocation, a NullPointerException is thrown and the test fails.

Thanks,
Tobias

[1] http://mail.openjdk.java.net/pipermail/hotspot-compiler-dev/2015-May/017983.html


More information about the hotspot-compiler-dev mailing list