RFR: 8339635: StringConcatFactory optimization for CompactStrings off

Chen Liang liach at openjdk.org
Thu Sep 5 23:46:50 UTC 2024


On Tue, 27 Aug 2024 05:08:53 GMT, Shaojin Wen <swen at openjdk.org> wrote:

> A small optimization, when CompactStrings is turned off, the coder method is not generated, which improves the startup performance

src/java.base/share/classes/jdk/internal/access/JavaLangAccess.java line 455:

> 453:     Object stringConcat1(String[] constants);
> 454: 
> 455:     byte stringInitCoder();

Can you add javadoc comment about on this API, like the javadoc for other JLA methods?

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/20722#discussion_r1746318345


More information about the core-libs-dev mailing list