RFR: 8356993: ArrayDeque should use Arrays.fill() instead of for() loops [v2]

Archie Cobbs acobbs at openjdk.org
Thu May 15 17:58:52 UTC 2025


On Thu, 15 May 2025 17:50:30 GMT, Rémi Forax <forax at openjdk.org> wrote:

> I think you need to return the collection or send it to a BlackHole

I'm fairly new to the benchmark game so I would not be surprised if this is broken.

Previously I was adding them to a list but that caused OOMs.

Can you clarify what you mean? By 'return' do you just mean returning the deque from the method? Also I don't konw what a BlackHole is.

Apologies for not knowing what I'm doing here. Thanks.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/25237#discussion_r2091707587


More information about the core-libs-dev mailing list