[lworld] RFR: 8360530: [lworld] CDS does not preload classes listed in the LoadableDescriptors attribute [v2]

Tobias Hartmann thartmann at openjdk.org
Mon Jun 30 13:38:55 UTC 2025


On Wed, 25 Jun 2025 20:41:04 GMT, Matias Saavedra Silva <matsaave at openjdk.org> wrote:

>> When a class is loaded, it's loadable descriptors attribute is parsed and the VM attempts to load any classes referred to in the attribute so long as the attribute is associated with a non-static field. A class loaded from the CDS archive should do the same, and this patch corrects the parsing of the descriptors to accomplish this. It also includes additional logging in the same style used when parsing the attribute without CDS. Verified with tier 1-5 tests.
>
> Matias Saavedra Silva has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Fix copyright

FTR, it seems that [JDK-8361082](https://bugs.openjdk.org/browse/JDK-8361082) was triggered/caused by this.

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

PR Comment: https://git.openjdk.org/valhalla/pull/1492#issuecomment-3019192323


More information about the valhalla-dev mailing list