On Fri, 27 Jan 2023 14:28:08 GMT, Alan Bateman <al...@openjdk.org> wrote:
> I skimmed through the latest update. I see you've considered the possibility > of a Matryoshka doll showing up but the optimization is still very very > scary. I think it would require an audit of every API in java.base that > potentially wraps a collection. It might be better to focus on a few specific > cases that can be proven to be safe. It is good to limit the trusted collection to a set of known collections. I am thinking about the best way to implement it. I hope that the impact on performance will be as small as possible. ------------- PR: https://git.openjdk.org/jdk/pull/12212