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

Examine cost of clone of primitive arrays compared to arraycopy

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 21
    • None
    • core-libs
    • None
    • b11

      During work on and review of https://git.openjdk.org/jdk/pull/12453 it was made apparent that array.clone() is sometimes a smidge slower than System.arraycopy, so for that patch we opted to keep helper methods and code around to call arraycopy.

      One candidate is that zeroing is not properly eliminated for clone, making this related to https://bugs.openjdk.org/browse/JDK-8146828

            redestad Claes Redestad
            redestad Claes Redestad
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: