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

C2's UseUniqueSubclasses optimization is broken for array accesses

XMLWordPrintable

    • b15
    • 11
    • b11

        If UseUniqueSubclasses is enabled, C2 tries to narrow the type of array elements on access to avoid type checks:
        http://hg.openjdk.java.net/jdk/jdk/file/690fc7e5a90f/src/hotspot/share/opto/parse2.cpp#l126

        But the fix for JDK-8202377 added code that overwrites the elemtype:
        http://hg.openjdk.java.net/jdk/jdk/rev/ffa644980dff#l27.26

              thartmann Tobias Hartmann
              thartmann Tobias Hartmann
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: