> Classes can be excluded from the CDS archive for a variety of different > reasons, such as having old classfile versions or being stored in a signed > jar. These exclusions can extend to other classes that depend on an excluded > class such as supers or interfaces. > > Flat and null-restricted fields have layouts that are calculated when a > classfile is parsed and they rely on the klass of the field being consistent > between dumptime and runtime, thus adding a new dependency. This patch adds > inline flat and null-restricted fields as new dependencies that may lead to > the holding class being excluded from the CDS archive. Verified with a new > test and tier 1-5 tests. > > > --------- > - [x] I confirm that I make this contribution in accordance with the [OpenJDK > Interim AI Policy](https://openjdk.org/legal/ai).
Matias Saavedra Silva has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains 13 commits: - Merge branch 'lworld' into signed_jar_8384756 - Added new test app - Include null-restricted static fields and added test - Ioi comments - Removed fastpath for statics - Fred and Dan comments - Fred patch - Ioi comments - Fixed test, removed from group, Fred comments - Fixed copyrights - ... and 3 more: https://git.openjdk.org/valhalla/compare/a7567f21...edd31530 ------------- Changes: https://git.openjdk.org/valhalla/pull/2464/files Webrev: https://webrevs.openjdk.org/?repo=valhalla&pr=2464&range=09 Stats: 294 lines in 12 files changed: 287 ins; 3 del; 4 mod Patch: https://git.openjdk.org/valhalla/pull/2464.diff Fetch: git fetch https://git.openjdk.org/valhalla.git pull/2464/head:pull/2464 PR: https://git.openjdk.org/valhalla/pull/2464
