RFR: 8221981: Simplify Map/List/Set.of() implementation

Stuart Marks stuart.marks at oracle.com
Thu Apr 4 20:43:47 UTC 2019

On 4/4/19 3:29 AM, Claes Redestad wrote:
> current implementations of the empty static factories (Map.of(), ...)
> delegate to static methods in java.util.ImmutableCollections. This
> indirection isn't really useful and adds a very small startup cost.
> Bug:    https://bugs.openjdk.java.net/browse/JDK-8221981
> Webrev: http://cr.openjdk.java.net/~redestad/8221981/open.00/
> Testing: tier1-2, verified a tiny improvement in startup profiles

Changes look good, thanks.


More information about the core-libs-dev mailing list