From 5b23c0664eb46f2bdfd025508a2ead0726b0a7b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joel=20Sikstr=C3=B6m?= Date: Wed, 3 Dec 2025 15:21:03 +0100 Subject: [PATCH 1/4] 8373022: Increase initial heap size for test which assumes no GC --- test/hotspot/jtreg/serviceability/sa/ClhsdbScanOops.java | 5 ++++- test/jdk/com/sun/jdi/MethodInvokeWithTraceOnTest.java | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/test/hotspot/jtreg/serviceability/sa/ClhsdbScanOops.java b/test/hotspot/jtreg/serviceability/sa/ClhsdbScanOops.java index b6919a566a934..27b39a6e92625 100644 --- a/test/hotspot/jtreg/serviceability/sa/ClhsdbScanOops.java +++ b/test/hotspot/jtreg/serviceability/sa/ClhsdbScanOops.java @@ -60,7 +60,10 @@ private static void testWithGcType(String gc) throws Exception { try { ClhsdbLauncher test = new ClhsdbLauncher(); - theApp = LingeredApp.startApp(gc); + // This test assumes that no GC should happen during its execution. + // Setting the initial heap size to a reasonable high number avoids + // running a GC. + theApp = LingeredApp.startApp(gc, "-XX:InitialHeapSize=100M"); System.out.println ("Started LingeredApp with the GC option " + gc + " and pid " + theApp.getPid()); diff --git a/test/jdk/com/sun/jdi/MethodInvokeWithTraceOnTest.java b/test/jdk/com/sun/jdi/MethodInvokeWithTraceOnTest.java index 929dfc0b4a502..3810cca38128f 100644 --- a/test/jdk/com/sun/jdi/MethodInvokeWithTraceOnTest.java +++ b/test/jdk/com/sun/jdi/MethodInvokeWithTraceOnTest.java @@ -29,7 +29,7 @@ * @library /test/lib * @run build TestScaffold VMConnection TargetListener TargetAdapter * @run compile -g MethodInvokeWithTraceOnTest.java - * @run driver MethodInvokeWithTraceOnTest + * @run driver MethodInvokeWithTraceOnTest -XX:InitialHeapSize=100M */ import com.sun.jdi.*; From 97f534474ae3f58385f56adb7935a3c44d1eb999 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joel=20Sikstr=C3=B6m?= Date: Wed, 3 Dec 2025 16:01:31 +0100 Subject: [PATCH 2/4] Spell fix --- test/hotspot/jtreg/serviceability/sa/ClhsdbScanOops.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/hotspot/jtreg/serviceability/sa/ClhsdbScanOops.java b/test/hotspot/jtreg/serviceability/sa/ClhsdbScanOops.java index 27b39a6e92625..ef75b08c99581 100644 --- a/test/hotspot/jtreg/serviceability/sa/ClhsdbScanOops.java +++ b/test/hotspot/jtreg/serviceability/sa/ClhsdbScanOops.java @@ -61,7 +61,7 @@ private static void testWithGcType(String gc) throws Exception { try { ClhsdbLauncher test = new ClhsdbLauncher(); // This test assumes that no GC should happen during its execution. - // Setting the initial heap size to a reasonable high number avoids + // Setting the initial heap size to a reasonably high number avoids // running a GC. theApp = LingeredApp.startApp(gc, "-XX:InitialHeapSize=100M"); From aa282ee659b045ed0c4558c6656c52dd50ce8427 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joel=20Sikstr=C3=B6m?= Date: Fri, 5 Dec 2025 10:15:44 +0100 Subject: [PATCH 3/4] Remove InitialHeapSize from MethodInvokeWithTraceOnTest --- test/jdk/com/sun/jdi/MethodInvokeWithTraceOnTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/jdk/com/sun/jdi/MethodInvokeWithTraceOnTest.java b/test/jdk/com/sun/jdi/MethodInvokeWithTraceOnTest.java index 3810cca38128f..929dfc0b4a502 100644 --- a/test/jdk/com/sun/jdi/MethodInvokeWithTraceOnTest.java +++ b/test/jdk/com/sun/jdi/MethodInvokeWithTraceOnTest.java @@ -29,7 +29,7 @@ * @library /test/lib * @run build TestScaffold VMConnection TargetListener TargetAdapter * @run compile -g MethodInvokeWithTraceOnTest.java - * @run driver MethodInvokeWithTraceOnTest -XX:InitialHeapSize=100M + * @run driver MethodInvokeWithTraceOnTest */ import com.sun.jdi.*; From 0f85529d3e18e326703f27c6c1354fafac02f0e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joel=20Sikstr=C3=B6m?= Date: Fri, 5 Dec 2025 10:19:47 +0100 Subject: [PATCH 4/4] Remove ClhsdbScanOops.java from ProblemList --- test/hotspot/jtreg/ProblemList.txt | 3 --- 1 file changed, 3 deletions(-) diff --git a/test/hotspot/jtreg/ProblemList.txt b/test/hotspot/jtreg/ProblemList.txt index 6c3d907961d6d..fda6eac7edf0d 100644 --- a/test/hotspot/jtreg/ProblemList.txt +++ b/test/hotspot/jtreg/ProblemList.txt @@ -140,9 +140,6 @@ serviceability/sa/ClhsdbPstack.java#core 8318754 macosx-aarch64 serviceability/sa/TestJmapCore.java 8318754 macosx-aarch64 serviceability/sa/TestJmapCoreMetaspace.java 8318754 macosx-aarch64 -serviceability/sa/ClhsdbScanOops.java#parallel 8373022 generic-all -serviceability/sa/ClhsdbScanOops.java#serial 8373022 generic-all - serviceability/sa/ClhsdbThreadContext.java 8356704 windows-x64 serviceability/jvmti/stress/StackTrace/NotSuspended/GetStackTraceNotSuspendedStressTest.java 8315980 linux-all,windows-x64