Integrated: 8309665: Simplify Arrays.copyOf/-Range methods
Claes Redestad
redestad at openjdk.org
Fri Jun 9 10:03:08 UTC 2023
On Thu, 8 Jun 2023 15:08:28 GMT, Claes Redestad <redestad at openjdk.org> wrote:
> 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.
This pull request has now been integrated.
Changeset: dc842e85
Author: Claes Redestad <redestad at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/dc842e8587f1e27ef599abeec80a38a043b3d0b3
Stats: 107 lines in 1 file changed: 25 ins; 64 del; 18 mod
8309665: Simplify Arrays.copyOf/-Range methods
Reviewed-by: jlaskey, rriggs, alanb
-------------
PR: https://git.openjdk.org/jdk/pull/14380
More information about the core-libs-dev
mailing list