RFR: 8376125: Out of memory in the CDS archive error with lot of classes [v7]
Xue-Lei Andrew Fan
xuelei at openjdk.org
Wed Feb 4 20:35:18 UTC 2026
On Tue, 3 Feb 2026 07:57:16 GMT, Ioi Lam <iklam at openjdk.org> wrote:
>> 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.
Thank you @iklam! The test case is better for manual testing. I removed it.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/29494#discussion_r2765864720
More information about the hotspot-dev
mailing list