RFR: 8341696: C2: Non-fluid StringBuilder pattern bails out in OptoStringConcat [v7]
Emanuel Peter
epeter at openjdk.org
Mon Jan 20 07:00:46 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
Thanks for the updates @theoweidmannoracle ! Approved :)
-------------
Marked as reviewed by epeter (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/22537#pullrequestreview-2561468767
More information about the hotspot-compiler-dev
mailing list