RFR: 8344821: Test CheckDefaultArchiveFile.java fails if classes_coh.jsa is not present [v2]
Calvin Cheung
ccheung at openjdk.org
Tue Nov 26 17:22:43 UTC 2024
On Tue, 26 Nov 2024 06:32:41 GMT, Ioi Lam <iklam at openjdk.org> wrote:
> There are also other test cases that call `Platform.isDefaultCDSArchiveSupported()`. I think these probably need to be cleaned up / removed (in separate RFE?)
>
> ```
> ./lib-test/jdk/test/lib/TestMutuallyExclusivePlatformPredicates.java: "areCustomLoadersSupportedForCDS", "isDefaultCDSArchiveSupported",
> ./jdk/tools/jlink/plugins/CDSPluginTest.java: if (!Platform.isDefaultCDSArchiveSupported())
> ./hotspot/jtreg/runtime/cds/CheckSharingWithDefaultArchive.java: if (!Platform.isDefaultCDSArchiveSupported()) {
> ./hotspot/jtreg/runtime/cds/CheckDefaultArchiveFile.java: if (Platform.isDefaultCDSArchiveSupported()) {
> ./hotspot/jtreg/runtime/cds/CheckDefaultArchiveFile.java: if (Platform.isDefaultCDSArchiveSupported()) {
> ./hotspot/jtreg/serviceability/jvmti/RedefineClasses/RedefineSharedClass.java: if (!Platform.isDefaultCDSArchiveSupported()) {
> ./lib/jdk/test/lib/Platform.java: public static boolean isDefaultCDSArchiveSupported() {
> ```
Other than CheckDefaultArchiveFile.java, the other tests seem to be running fine so far. Will file bug if the other tests start failing.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/22374#issuecomment-2501506994
More information about the hotspot-runtime-dev
mailing list