From 95ba9dee4e3055f4f38e95ff7b07c4e27caedce7 Mon Sep 17 00:00:00 2001 From: amosshi Date: Mon, 22 Jan 2024 01:12:15 -0800 Subject: [PATCH] Backport 989f39f8106a22498053a4ca5f2becf8df5f2420 --- .../jtreg/runtime/SharedArchiveFile/MaxMetaspaceSize.java | 1 + test/hotspot/jtreg/runtime/SharedArchiveFile/SharedStrings.java | 1 + test/hotspot/jtreg/runtime/appcds/MoveJDKTest.java | 1 + .../appcds/cacheObject/ArchivedModuleWithCustomImageTest.java | 1 + 4 files changed, 4 insertions(+) diff --git a/test/hotspot/jtreg/runtime/SharedArchiveFile/MaxMetaspaceSize.java b/test/hotspot/jtreg/runtime/SharedArchiveFile/MaxMetaspaceSize.java index 765e423034a..2be4b5faa91 100644 --- a/test/hotspot/jtreg/runtime/SharedArchiveFile/MaxMetaspaceSize.java +++ b/test/hotspot/jtreg/runtime/SharedArchiveFile/MaxMetaspaceSize.java @@ -24,6 +24,7 @@ /** * @test * @requires vm.cds + * @requires vm.flagless * @bug 8067187 8200078 * @summary Testing CDS dumping with the -XX:MaxMetaspaceSize= option * @library /test/lib diff --git a/test/hotspot/jtreg/runtime/SharedArchiveFile/SharedStrings.java b/test/hotspot/jtreg/runtime/SharedArchiveFile/SharedStrings.java index 22ff4c771c7..b5323d211ba 100644 --- a/test/hotspot/jtreg/runtime/SharedArchiveFile/SharedStrings.java +++ b/test/hotspot/jtreg/runtime/SharedArchiveFile/SharedStrings.java @@ -26,6 +26,7 @@ * @summary Check to make sure that shared strings in the bootstrap CDS archive * are actually shared * @requires vm.cds.archived.java.heap + * @requires vm.flagless * @library /test/lib * @modules java.base/jdk.internal.misc * java.management diff --git a/test/hotspot/jtreg/runtime/appcds/MoveJDKTest.java b/test/hotspot/jtreg/runtime/appcds/MoveJDKTest.java index 45202705958..21e9df20d93 100644 --- a/test/hotspot/jtreg/runtime/appcds/MoveJDKTest.java +++ b/test/hotspot/jtreg/runtime/appcds/MoveJDKTest.java @@ -27,6 +27,7 @@ * @summary Test that CDS still works when the JDK is moved to a new directory * @bug 8272345 * @requires vm.cds + * @requires vm.flagless * @comment This test doesn't work on Windows because it depends on symlinks * @requires os.family != "windows" * @library /test/lib diff --git a/test/hotspot/jtreg/runtime/appcds/cacheObject/ArchivedModuleWithCustomImageTest.java b/test/hotspot/jtreg/runtime/appcds/cacheObject/ArchivedModuleWithCustomImageTest.java index 5deb0b8f624..2b9a0be9e15 100644 --- a/test/hotspot/jtreg/runtime/appcds/cacheObject/ArchivedModuleWithCustomImageTest.java +++ b/test/hotspot/jtreg/runtime/appcds/cacheObject/ArchivedModuleWithCustomImageTest.java @@ -25,6 +25,7 @@ * @test * @summary Test archived module graph with custom runtime image * @requires vm.cds.archived.java.heap + * @requires vm.flagless * @library /test/jdk/lib/testlibrary /test/lib /test/hotspot/jtreg/runtime/appcds * @modules java.base/jdk.internal.module * java.management