RFR: 8341553: Remove UseCompactObjectHeaders extra CDS archives

Calvin Cheung ccheung at openjdk.org
Tue Nov 12 23:35:16 UTC 2024


With this change, the compact object headers related CDS archives (`classes_coh.jsa` and `classes_nocoops_coh.jsa`) will not be generated by default. If the user needs them, the user can specify the `--enable-cds-archive-coh=yes` build configure option.
This change also modified the TestDefaultArchiveLoading.java test.

Testing:

- default build config: classes*coh.jsa CDS archives are not generated
- build configured with `--enable-cds-archive-coh=yes`: classes*coh.jsa CDS archives are generated
- build configured with `--enable-cds-archive-coh=no`: classes*coh.jsa CDS archives are not generated
- passed tiers 1 and 3 tests

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

Commit messages:
 - 8341553: Remove UseCompactObjectHeaders extra CDS archives

Changes: https://git.openjdk.org/jdk/pull/22051/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=22051&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8341553
  Stats: 55 lines in 2 files changed: 50 ins; 1 del; 4 mod
  Patch: https://git.openjdk.org/jdk/pull/22051.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/22051/head:pull/22051

PR: https://git.openjdk.org/jdk/pull/22051


More information about the build-dev mailing list