RFR: 8174831: Reduce number of Charset classes loaded on bootstrap

Xueming Shen xueming.shen at oracle.com
Mon Feb 13 19:08:40 UTC 2017


On 02/13/2017 11:03 AM, Claes Redestad wrote:
> Hi,
>
> this patch addresses a few tiny startup regressions incurred mostly by
> the fact that Compact Strings eagerly loads more Charsets early.
>
> java.nio.charset.StandardCharsets is dropped from the early bootstrap,
> load fastpaths are added for the 3 eagerly used Charsets (which avoids
> some early reflection use), plus a couple of other nits:
>
> Webrev: http://cr.openjdk.java.net/~redestad/8174831/webrev.01/
> Bug: https://bugs.openjdk.java.net/browse/JDK-8174831
>
> Testing: jdk-tier1 tests
>
> Thanks!
>
> /Claes
+1


More information about the core-libs-dev mailing list