On Thu, 26 Jan 2023 10:01:21 GMT, Glavo <d...@openjdk.org> wrote: > it is necessary to copy the elements to a larger new array
Right, I missed this is addAll() method. Btw, in this class you could do similar optimization in constructor as well. ------------- PR: https://git.openjdk.org/jdk/pull/12212