Integrated: 8357822: C2: Multiple string optimization tests are no longer testing string concatenation optimizations

Daniel Skantz dskantz at openjdk.org
Mon Jun 9 06:13:54 UTC 2025


On Tue, 3 Jun 2025 07:17:47 GMT, Daniel Skantz <dskantz at openjdk.org> wrote:

> This PR updates a few tests to reintroduce testing of string concatenation optimizations since a few bugs have recently been identified in this area.
> 
> Selection criteria: performed a text search on the test suite and identified tests for string concatenations or string optimizations that are not currently compiled with `-XDstringConcat=inline` and are not using StringBuilders explicitly.
> 
> Testing: T1-4.
> 
> Extra testing: ran the tests manually with `-XX:+PrintOptimizeStringConcat` and verified that the tests are exercising string optimizations after the fix.

This pull request has now been integrated.

Changeset: 6c616c71
Author:    Daniel Skantz <dskantz at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/6c616c71ec9a8ee6e0203921deef20d09db39698
Stats:     86 lines in 6 files changed: 81 ins; 0 del; 5 mod

8357822: C2: Multiple string optimization tests are no longer testing string concatenation optimizations

Reviewed-by: rcastanedalo, epeter

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

PR: https://git.openjdk.org/jdk/pull/25610


More information about the hotspot-compiler-dev mailing list