RFR: 8362394: C2: Repeated stacked string concatenation fails with "Hit MemLimit" and other resourcing errors [v4]

Galder Zamarreño galder at openjdk.org
Wed Aug 27 11:27:45 UTC 2025


On Thu, 21 Aug 2025 07:49:31 GMT, Daniel Skantz <dskantz at openjdk.org> wrote:

>> test/hotspot/jtreg/compiler/stringopts/TestStackedConcatsMany.java line 28:
>> 
>>> 26:  * @bug 8357105
>>> 27:  * @summary Test that repeated stacked string concatenations do not
>>> 28:  *          consume too many compilation resources.
>> 
>> Is there a reasonable way to enhance the test to validate excessive resources? I'm not sure if the following example would work, but I'm wondering if there is something that can be measured deterministically. E.g. before with the given test there would be ~N IR nodes produced but now it would be a max of ~M, assuming that M is deterministically smaller than N.
>
> What do you think, @galderz ? Thanks!

Sorry I had forgotten to 👍 before, all good with your reply

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

PR Review Comment: https://git.openjdk.org/jdk/pull/26685#discussion_r2303643835


More information about the hotspot-compiler-dev mailing list