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