diff --git a/test/hotspot/jtreg/serviceability/dcmd/vm/SystemDumpMapTest.java b/test/hotspot/jtreg/serviceability/dcmd/vm/SystemDumpMapTest.java index 1bfec79e9df21..e5ab2d91e8df6 100644 --- a/test/hotspot/jtreg/serviceability/dcmd/vm/SystemDumpMapTest.java +++ b/test/hotspot/jtreg/serviceability/dcmd/vm/SystemDumpMapTest.java @@ -33,7 +33,7 @@ /* * @test - * @summary Test of diagnostic command System.map + * @summary Test of diagnostic command System.dump_map * @library /test/lib * @requires (os.family == "linux" | os.family == "windows" | os.family == "mac") * @modules java.base/jdk.internal.misc @@ -42,6 +42,18 @@ * jdk.internal.jvmstat/sun.jvmstat.monitor * @run testng/othervm -XX:+UsePerfData SystemDumpMapTest */ + + /* + * @test + * @summary Test of diagnostic command System.dump_map using ZGC + * @library /test/lib + * @requires (os.family == "linux" | os.family == "windows" | os.family == "mac") + * @modules java.base/jdk.internal.misc + * java.compiler + * java.management + * jdk.internal.jvmstat/sun.jvmstat.monitor + * @run testng/othervm -XX:+UsePerfData -XX:+UseZGC SystemDumpMapTest + */ public class SystemDumpMapTest extends SystemMapTestBase { private void run_test(CommandExecutor executor, boolean useDefaultFileName) { diff --git a/test/hotspot/jtreg/serviceability/dcmd/vm/SystemMapTest.java b/test/hotspot/jtreg/serviceability/dcmd/vm/SystemMapTest.java index 72283ca012071..e80f5630ad3e5 100644 --- a/test/hotspot/jtreg/serviceability/dcmd/vm/SystemMapTest.java +++ b/test/hotspot/jtreg/serviceability/dcmd/vm/SystemMapTest.java @@ -38,6 +38,18 @@ * jdk.internal.jvmstat/sun.jvmstat.monitor * @run testng/othervm -XX:+UsePerfData SystemMapTest */ + + /* + * @test + * @summary Test of diagnostic command System.map using ZGC + * @library /test/lib + * @requires (os.family == "linux" | os.family == "windows" | os.family == "mac") + * @modules java.base/jdk.internal.misc + * java.compiler + * java.management + * jdk.internal.jvmstat/sun.jvmstat.monitor + * @run testng/othervm -XX:+UsePerfData -XX:+UseZGC SystemMapTest + */ public class SystemMapTest extends SystemMapTestBase { public void run(CommandExecutor executor) { OutputAnalyzer output = executor.execute("System.map"); diff --git a/test/hotspot/jtreg/serviceability/dcmd/vm/SystemMapTestBase.java b/test/hotspot/jtreg/serviceability/dcmd/vm/SystemMapTestBase.java index dbaa5b18e2e50..0e346581c0942 100644 --- a/test/hotspot/jtreg/serviceability/dcmd/vm/SystemMapTestBase.java +++ b/test/hotspot/jtreg/serviceability/dcmd/vm/SystemMapTestBase.java @@ -157,7 +157,7 @@ private static class MacOSPatterns implements MapPatterns { static final String macow = "cow"; static final String macprivate = "pvt"; - static final String macprivate_or_shared = "(pvt|tsh)"; + static final String macshared = "pvt"; static final String macprivatealiased = "p/a"; static final String macOSbase = range + space + someSize + space + macprot + space; @@ -173,7 +173,7 @@ private static class MacOSPatterns implements MapPatterns { static final String shouldMatchIfNMTIsEnabled_macOS[] = { // heap is private with G1GC, shared with ZGC - macOSbase + macprivate_or_shared + space + someNumber + space + "JAVAHEAP.*", + macOSbase + macprivate + space + someNumber + space + "JAVAHEAP.*", // metaspace macOSbase + macprivate + space + someNumber + space + "META.*", // code cache