Re: RFR: 6323374: (coll) Optimize Collections.unmodifiable* and synchronized* [v8]

2021-03-04 Thread Joe Darcy
On Thu, 4 Mar 2021 22:35:09 GMT, Ian Graves wrote: >> Modify the `unmodifiable*` methods in `java.util.Collections` to be >> idempotent. That is, when given an immutable collection from >> `java.util.ImmutableCollections` or `java.util.Collections`, these methods >> will return the reference i

Re: RFR: 6323374: (coll) Optimize Collections.unmodifiable* and synchronized* [v8]

2021-03-04 Thread Ian Graves
> Modify the `unmodifiable*` methods in `java.util.Collections` to be > idempotent. That is, when given an immutable collection from > `java.util.ImmutableCollections` or `java.util.Collections`, these methods > will return the reference instead of creating a new immutable collection that > wra