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

duke duke at openjdk.org
Mon Jan 20 08:01:40 UTC 2025


On Fri, 17 Jan 2025 08:33:06 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:
> 
>   Cosmetic improvements

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

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

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


More information about the hotspot-compiler-dev mailing list