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

Ioi Lam iklam at openjdk.org
Wed Feb 4 20:57:14 UTC 2026


On Wed, 4 Feb 2026 19:27:34 GMT, Xue-Lei Andrew Fan <xuelei at openjdk.org> wrote:

> > Eventually, I want to move the encoding logic to its own class (patterned after `CompressedKlassPointers`): [8d5b3d5](https://github.com/openjdk/jdk/commit/8d5b3d5e684381005f1631e1577af2f716c4be9c)
> 
> I like the idea to move the logic to its own class.
> 
> The renaming to use raw/encoded offset will touch about 16 files. What do you think to do it separately, or together with the new proposal above? I added brief comments to explaining the distinction between raw byte offsets vs encoded (scaled u4) offsets.

I think it's better to do the renaming first as a clean-up PR, and then do this PR. It will make the logic in this PR much clearer (as you would just need to change a few constants). What do you think?

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

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


More information about the hotspot-dev mailing list