RFR: 8309665: Simplify Arrays.copyOf/-Range methods

Claes Redestad redestad at openjdk.org
Thu Jun 8 15:15:19 UTC 2023


https://bugs.openjdk.org/browse/JDK-8301958 and later changes improved Arrays.copyOf/-Range methods to improve peak performance in microbenchmarks when copying the entire array, but it's resulted in a few lurking footprint benchmark issues that come down to incurring slightly more JIT activity. As a partial remedy I propose simplifying the implementation so that no new methods are added compared to the JDK 20 baseline. This patch maintains the microbenchmark speed-up from JDK-8301958 while reducing JIT compilations in startup/footprint benchmarks.

-------------

Commit messages:
 - Merge branch 'master' into 8309665
 - 8309665: Simplify Array.copyOf/-Range methods

Changes: https://git.openjdk.org/jdk/pull/14380/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=14380&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8309665
  Stats: 105 lines in 1 file changed: 25 ins; 62 del; 18 mod
  Patch: https://git.openjdk.org/jdk/pull/14380.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/14380/head:pull/14380

PR: https://git.openjdk.org/jdk/pull/14380


More information about the core-libs-dev mailing list