RFR: 8332842: Optimize empty CopyOnWriteArrayList allocations [v3]
Viktor Klang
vklang at openjdk.org
Mon Jun 10 12:00:16 UTC 2024
On Thu, 6 Jun 2024 14:29:46 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:
>> `clone()` performs a shallow copy, so there is currently no `Object[]` allocated and therefore nothing to optimize. I don't think there's any work to do here.
>>
>> @DougLea @viktorklang-ora can you confirm?
>
>> 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_r1633127845
More information about the core-libs-dev
mailing list