RFR (XS): 8148044: Remove Enum[0] constants from EnumSet and EnumMap

Aleksey Shipilev aleksey.shipilev at oracle.com
Fri Jan 22 11:57:28 UTC 2016

On 01/22/2016 02:34 PM, Claes Redestad wrote:
> Bug: https://bugs.openjdk.java.net/browse/JDK-8148044
> Webrev: http://cr.openjdk.java.net/~redestad/8148044/webrev.01/

-1, sorry.

I would actually suggest keeping the ZERO_ARRAY in Enum*, because enums
often have small cardinality, and there dodging an allocation matters.
I'd also make sure we have all ZERO_ARRAY declarations like that as
"static final".


More information about the core-libs-dev mailing list