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

Matias Saavedra Silva matsaave at openjdk.org
Wed Jun 25 17:17:55 UTC 2025


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.

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

Commit messages:
 - 8360530: [lworld] CDS does not preload classes listed in the LoadableDescriptors attribute

Changes: https://git.openjdk.org/valhalla/pull/1492/files
  Webrev: https://webrevs.openjdk.org/?repo=valhalla&pr=1492&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8360530
  Stats: 52 lines in 3 files changed: 50 ins; 0 del; 2 mod
  Patch: https://git.openjdk.org/valhalla/pull/1492.diff
  Fetch: git fetch https://git.openjdk.org/valhalla.git pull/1492/head:pull/1492

PR: https://git.openjdk.org/valhalla/pull/1492


More information about the valhalla-dev mailing list