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

[lworld] [lw3] C1 should avoid copying element of flattened arrays when reading a sub-element

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: repo-valhalla
    • Fix Version/s: repo-valhalla
    • Component/s: hotspot
    • Labels:

      Description

      Currently, when accessing elements of a flattened array, the code generated by C1 always make a copy of the element, even if in sub-sequent code, only single field of this element is needed.

      C1 could detect aaload/getfield* bytecodes sequences and generate direct access to the sub-element, avoiding unnecessary copies of intermediate values.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                fparain Frederic Parain
                Reporter:
                fparain Frederic Parain
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: