Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8054492

Casting can result in redundant null checks in generated code

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 9
    • None
    • hotspot
    • b40

    Backports

      Description

        When a java cast is performed and the cast is optimized away in a compiled method redundant null checks (with deoptimization) can still remain.

        This is has been observed with method handles that access fields and elements of arrays and also with the experimental VarHandle work (see http://cr.openjdk.java.net/~psandoz/varhandles/VarHandle-0.1.md).

        Attachments

          Issue Links

            Activity

              People

                kvn Vladimir Kozlov
                psandoz Paul Sandoz
                Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: