RFR: 8332842: Optimize empty CopyOnWriteArrayList allocations [v3]

Aleksey Shipilev shade at openjdk.org
Thu Jun 6 14:32:47 UTC 2024


On Wed, 5 Jun 2024 14:56:26 GMT, jengebr <duke at openjdk.org> wrote:

> clone() performs a shallow copy, so there is currently no Object[] allocated and therefore nothing to optimize.

Yes, I believe so.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/19527#discussion_r1629666551


More information about the core-libs-dev mailing list