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

Casting can result in redundant null checks in generated code

XMLWordPrintable

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

        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).

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

                Created:
                Updated:
                Resolved: