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

Matias Saavedra Silva matsaave at openjdk.org
Wed Jun 25 20:41:04 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.

Matias Saavedra Silva has updated the pull request incrementally with one additional commit since the last revision:

  Fix copyright

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

Changes:
  - all: https://git.openjdk.org/valhalla/pull/1492/files
  - new: https://git.openjdk.org/valhalla/pull/1492/files/39b3be9a..698796ad

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=valhalla&pr=1492&range=01
 - incr: https://webrevs.openjdk.org/?repo=valhalla&pr=1492&range=00-01

  Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 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