<i18n dev> RFR: 8261254: Initialize charset mapping data lazily

Johannes Kuhn jkuhn at openjdk.java.net
Mon Feb 8 12:18:43 UTC 2021

On Sun, 7 Feb 2021 19:08:18 GMT, Claes Redestad <redestad at openjdk.org> wrote:

> This patch refactor JDK internal charsets to initialize charset mapping data lazily when needed via holder classes. This means both a startup improvement in some cases, and possible throughput improvements for all DoubleByte-based Charsets.
> Testing: tier1-3

Looks good to me.

src/java.base/share/classes/java/lang/ModuleLayer.java line 936:

> 934:                 for (Module m : nameToModule.values()) {
> 935:                     servicesCatalog.register(m);
> 936:                 }

Seems to be unrelated, but it's not a bad change.


Marked as reviewed by jkuhn (Author).

PR: https://git.openjdk.java.net/jdk/pull/2449

More information about the i18n-dev mailing list