8373022: serviceability/sa/ClhsdbScanOops.java assumes no GC should occur

Reviewed-by: cjplummer, stefank, ayang, tschatzl
This commit is contained in:
Joel Sikström 2025-12-09 09:44:18 +00:00
parent 9c91c68d1d
commit 786833cd1b
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -60,7 +60,10 @@ public class ClhsdbScanOops {
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 reasonably 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());