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

Ioi Lam iklam at openjdk.org
Wed Feb 4 08:02:12 UTC 2026


On Wed, 4 Feb 2026 07:39:24 GMT, Xue-Lei Andrew Fan <xuelei at openjdk.org> wrote:

> I [prototyped](https://github.com/openjdk/jdk/pull/29556) the idea to support large CDS archives with UseCompactObjectHeaders. The test looks positive to me (tier1, tier2, LargeArchive for 3GB and 10GB, no visible performance impact). The [prototype](https://github.com/openjdk/jdk/pull/29556) is based on this pull request, and you may look at [this commit](https://github.com/openjdk/jdk/pull/29556/changes/e7a12c372480f405d2a08a75bdabac91c7328346) only.

I think we should keep this PR simple -- only introduce the shift encoding and limit max archive size to 3.5GB.

The next step, whether to change UseCompactObjectHeaders to allow a larger range should be done in a follow up, as there are many more interested parties that may have different opionons.

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

PR Comment: https://git.openjdk.org/jdk/pull/29494#issuecomment-3845908335


More information about the hotspot-dev mailing list