RFR: 8338930: StringConcatFactory hardCoded string concatenation strategy [v8]

Chen Liang liach at openjdk.org
Fri Sep 6 16:08:15 UTC 2024


On Fri, 6 Sep 2024 01:12:27 GMT, Shaojin Wen <swen at openjdk.org> wrote:

>> This is a follow-up to PR #20273, which improves performance when the number of parameters exceeds 20.
>> 
>> When the number of parameters is large, the possibility of reuse will be lower, so we can use the static concat method and write the length and coder directly into the bytecode to solve the performance regression problem.
>
> Shaojin Wen has updated the pull request incrementally with one additional commit since the last revision:
> 
>   ACC_ABSTRACT

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

> 462:     byte stringInitCoder();
> 463: 
> 464:     byte stringCoder(String str);

Same remark on adding javadoc here as in #20722

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

PR Review Comment: https://git.openjdk.org/jdk/pull/20675#discussion_r1747366926


More information about the core-libs-dev mailing list