On Thu, 21 May 2026 23:09:11 GMT, Matias Saavedra Silva <[email protected]> wrote:
> 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). This pull request has now been integrated. Changeset: 022f70b4 Author: Matias Saavedra Silva <[email protected]> URL: https://git.openjdk.org/valhalla/commit/022f70b4ccfc2ecaa7268e5b956d0f7c90149885 Stats: 293 lines in 12 files changed: 286 ins; 3 del; 4 mod 8384756: [lworld] Exclude class from archive if class of inline field is excluded Co-authored-by: Frederic Parain <[email protected]> Reviewed-by: iklam, fparain, heidinga ------------- PR: https://git.openjdk.org/valhalla/pull/2464
