RFR: 8344821: Test CheckDefaultArchiveFile.java fails if classes_coh.jsa is not present

Calvin Cheung ccheung at openjdk.org
Tue Nov 26 04:07:37 UTC 2024


On Mon, 25 Nov 2024 23:45:55 GMT, Calvin Cheung <ccheung at openjdk.org> wrote:

> JDK image built by Oracle does not include the CDS archives for compact object headers. This fix throws a SkippedException if UseCompactObjectHeaders is enabled and the default CDS archive for COH is not present.

I think this test was written for JEP341 where it eliminates and extra step of doing `-Xshare:dump` and enables `-Xshare:auto` by default. At that time, there was only one CDS archive (classes.jsa). It gets more complicated now with the COH option. I'm fine with removing this test. If the "default" archive is not available for some reasons, other tests such as the  dynamic CDS archive tests would fail so we have coverage there.

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

PR Comment: https://git.openjdk.org/jdk/pull/22374#issuecomment-2499610887


More information about the hotspot-runtime-dev mailing list