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

Implement arraycopy as a macro node

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • hs24
    • hotspot
    • None
    • b29
    • generic
    • generic

        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.

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

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: