[External] : Re: RFD: ArrayDeque bulk adds and lambda

Eirik Bjørsnøs eirbjo at gmail.com
Tue Feb 24 15:50:48 UTC 2026


On Mon, Feb 23, 2026 at 5:02 PM Chen Liang <chen.l.liang at oracle.com> wrote:

> But given that collections are used in early bootstrap in general, I think
> being bootstrap-proof might be a good idea.
>

Good, seems replacing this with a simple loop may be worthwhile to bring it
in alignment with ArrayList which does not invoke lambdas.

See PR https://github.com/openjdk/jdk/pull/29894 for this simple
replacement.

Thanks,
Eirik.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/core-libs-dev/attachments/20260224/cbf1d990/attachment.htm>


More information about the core-libs-dev mailing list