RFR: 8341696: C2: Non-fluid StringBuilder pattern bails out in OptoStringConcat [v9]

duke duke at openjdk.org
Thu Jan 23 08:37:01 UTC 2025


On Tue, 21 Jan 2025 14:02:00 GMT, Theo Weidmann <tweidmann at openjdk.org> wrote:

>> Extends stringopts to also recognize non-fluid uses of StringBuilder and optimize them the same way.
>> 
>> For example, this basic case was not optimized before and is optimized with this PR:
>> 
>> 
>> StringBuilder sb = new StringBuilder();
>> sb.append("a");
>> sb.append(a);
>> return sb.toString();
>
> Theo Weidmann has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Fix merge gone wrong

@theoweidmannoracle 
Your change (at version ea04c9dc391c6aed6d755e0b5e57b469012ad103) is now ready to be sponsored by a Committer.

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

PR Comment: https://git.openjdk.org/jdk/pull/22537#issuecomment-2609161111


More information about the hotspot-compiler-dev mailing list