RFR: 8376125: Out of memory in the CDS archive error with lot of classes [v3]

Ioi Lam iklam at openjdk.org
Tue Feb 3 08:00:08 UTC 2026


On Mon, 2 Feb 2026 21:58:58 GMT, Xue-Lei Andrew Fan <xuelei at openjdk.org> wrote:

>> Sounds good to me then.
>> 
>> Could you add the following to `test/hotspot/jtreg/TEST.groups`:
>> 
>> 
>> hotspot_resourcehogs_no_cds = \
>>   :hotspot_resourcehogs \
>> - resourcehogs/runtime/aot
>
> updated.  Thank you!

I tried running the test on my Intel Core i7-14700 box and it took more than 10 minuets on a fastdebug build.

I am not sure if we actually need this test case -- archiving a lot of classes doesn't increase coverage in any meaningful way.

We need a test case for the `Out of memory in the CDS archive` error in archiveUtils.cpp, but that's not tested in this test. If we really want to do it, it's much easier to add a new diagnostic switch to limit the size of the buffer, so you can get into the out of memory condition quickly.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/29494#discussion_r2757715162


More information about the hotspot-dev mailing list