On Mon, 7 Sep 2026 19:24:03 GMT, ExE Boss <[email protected]> wrote: >> Thanks for the suggestion. Since it would require access to `SharedSecrets`, >> we'll consider that level of performance improvement once the API is no >> longer incubating. > > @naotoj I was talking about doing the optimisation inside > `java.util.ImmutableCollections::listCopy(…)`, which is called by > `java.util.List::copyOf(…)`: > https://github.com/openjdk/jdk/blob/a48203f498fd55ae7ee8f1f38c2ed0b6224d41c6/src/java.base/share/classes/java/util/ImmutableCollections.java#L182-L190
@ExE-Boss Ah, thank you for the clarification. I thought you meant modifying the call site. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/32282#discussion_r3960041499
