[9] RFR [XS] 8054492: Casting can result in redundant null checks in generated code

John Rose john.r.rose at oracle.com
Thu Oct 23 06:01:36 UTC 2014


On Oct 22, 2014, at 10:09 PM, Vladimir Kozlov <vladimir.kozlov at oracle.com> wrote:

> Intrinsic is not enough.

Would it be possible to give the new intrinsic wider coverage, to replace the logic in a majority of places it is used?

The logic in GraphKit::gen_checkcast is pretty sophisticated, and it's all there for a reason.  What would stop us from using it more fully?

Some of the sophistication depends on profiling of the cast and aastore instructions, crucially with null, but perhaps we can cover that need with Roland's argument profiling work.

— John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/hotspot-compiler-dev/attachments/20141022/ad2b17c6/attachment-0001.html>


More information about the hotspot-compiler-dev mailing list