Fine enhancement!
See also:
JDK-6862158 <https://bugs.java.com/view_bug.do?bug_id=JDK-6862158> :
Make sun.nio.cs.* charset objects light-weight
JDK-6796087 <https://bugs.java.com/view_bug.do?bug_id=JDK-6790402> :
Speed-up sun.nio.cs.StandardCharsets
JDK-6790402 <https://bugs.java.com/view_bug.do?bug_id=JDK-6790402> :
Speed-up FastCharsetProvider
-Ulf
Am 27.03.2018 um 02:21 schrieb Martin Buchholz:
Motivation: I ran into trouble using reflection via
StandardCharsets.<clinit> too early during bootstrap with a local mod.
00000000: Avoid charset lookup machinery in StandardCharsets
http://cr.openjdk.java.net/~martin/webrevs/jdk/StandardCharsets/