RFR: 8371164: ArrayList.addAll() optimizations

Pavel Rappo prappo at openjdk.org
Mon Nov 3 21:54:11 UTC 2025


On Mon, 3 Nov 2025 21:38:49 GMT, jengebr <duke at openjdk.org> wrote:

> > A drive-by observation: this PR adds benchmarks, but does not seem to add tests.
> 
> Thank you - these methods are already covered by various existing tests, but for the most part that's indirect. Are direct ones in order?

There needs to be some proof that this functionality is covered. If you could list existing tests that exercise the ArrayList.addAll(ArrayList) and Collections.singleton().toArray() methods, we could simply add this bug number to them.

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

PR Comment: https://git.openjdk.org/jdk/pull/28116#issuecomment-3482739520


More information about the core-libs-dev mailing list