RFR: 8376125: Out of memory in the CDS archive error with lot of classes [v9]
Xue-Lei Andrew Fan
xuelei at openjdk.org
Tue Feb 17 21:23:40 UTC 2026
On Tue, 17 Feb 2026 07:37:52 GMT, Ioi Lam <iklam at openjdk.org> wrote:
>> Xue-Lei Andrew Fan has updated the pull request incrementally with one additional commit since the last revision:
>>
>> miss update for FileMapInfo
>
> src/hotspot/share/cds/archiveBuilder.cpp line 327:
>
>> 325: // On 32-bit: use 256MB + AOT code size due to limited virtual address space.
>> 326: size_t buffer_size = LP64_ONLY(AOTCompressedPointers::MaxMetadataOffsetBytes)
>> 327: NOT_LP64(256 * M + AOTCodeCache::max_aot_code_size());
>
> When `CompactObjectHeaders` are enabled, we should reserve a smaller size to avoid assertion.
The AOTCompressedPointers::MaxMetadataOffsetBytes now is set to 3.5GB. I think the size is OK if CompactObjectHeaders is enabled.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/29494#discussion_r2819143642
More information about the serviceability-dev
mailing list