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

Implement arraycopy as a macro node

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: hs24
    • Fix Version/s: 9
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b29
    • CPU:
      generic
    • OS:
      generic

      Backports

        Description

        When arraycopy is intrinsified, it is converted as calls to specialized stubs based on what's known from the context of the arraycopy. Right now, this is done at parsing. By using a new macro node for arraycopy that is expanded later, the compiler may be able to gather more data on the context of the arraycopy and make a better choice for the stub to call.

        This also opens the door to other optimizations such as inlining small copies in a series of loads/stores.

        This also impacts clone and Arrays.copyOf's implementations because they rely on the arraycopy stubs as well.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  roland Roland Westrelin
                  Reporter:
                  roland Roland Westrelin
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Imported:
                    Indexed: