RFR: 8370519: C2: Hit MemLimit when running with +VerifyLoopOptimizations [v6]

Roland Westrelin roland at openjdk.org
Mon Feb 2 09:36:27 UTC 2026


On Fri, 30 Jan 2026 16:10:25 GMT, Benoît Maillard <bmaillard at openjdk.org> wrote:

>>> I was able to come up with this test, which is a bit more that 2 times faster than the original one on my machine. Its `memlimit` is set to `600M`, which is enough to make the old version fail. With the new one, the test passes even with a `memlimit` of `200M`, so this should be a good enough margin.
>> 
>> Great. The new test looks good to me. I replaced the existing test with that one. Thanks for taking the time to do that.
>> 
>>> While looking into this I have also found out that some programs have an unexpectedly high usage of `output` (as was the case in the test case that I initially suggested). I am trying to get a good reproducer and will most likely file a follow-up.
>> 
>> Can you post links to the bugs? Thanks.
>
>> Can you post links to the bugs? Thanks.
> 
> I haven't filed it yet. I observed something suspicious once, but at the moment I am not able to reproduce it anymore. I will take another look, and I will post here or tag you in the issue if there is any update @rwestrel.

@benoitmaillard @mhaessig thanks for the reviews.
@eme64 would you mind approving it again?

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

PR Comment: https://git.openjdk.org/jdk/pull/28581#issuecomment-3833993449


More information about the hotspot-dev mailing list