RFR [10]: 8186517: sun.nio.cs.StandardCharsets$Aliases and ClassMap can be lazily loaded
Claes Redestad
claes.redestad at oracle.com
Wed Aug 23 15:48:15 UTC 2017
On 08/23/2017 04:52 PM, Claes Redestad wrote:
> We still need to key on the lower-case name in the cache for now:
>
Or perhaps not. Since we're always loading these three Charset on
bootstrap now, we might as well initialize them eagerly and bypass
the cache entirely (but keep this neatly contained in StandardCharset).
This allows us to lazily load the $Cache class too, further reducing
work done during System.initPhase1:
http://cr.openjdk.java.net/~redestad/8186517/jdk.02/
Thanks!
/Claes
More information about the nio-dev
mailing list