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

Ioi Lam iklam at openjdk.org
Tue Feb 3 07:47:01 UTC 2026


On Tue, 3 Feb 2026 07:05:08 GMT, Thomas Stuefe <stuefe at openjdk.org> wrote:

> The current limit gives us 4GB of encoding space; that is enough (with -UseCompressedKlassPointers) for roughly 5-6 million classes, possibly more. What scenario would require more classes than that?

The problem is that CDS stuffs all data (not just Klasses) into the ro/rw regions, which are mapped into the compressed class space. If we want to support millions of classes, we would need to split the classes out into its own region, and map only that into the CCS.

In any case, supporting very large set of classes is not our priority. I think it's OK to make small tweaks to allow more classes, but we won't have time for more drastic changes.

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

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


More information about the hotspot-dev mailing list