Skip to content

Commit 5b23c06

Browse files
committed
8373022: Increase initial heap size for test which assumes no GC
1 parent 135661b commit 5b23c06

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

test/hotspot/jtreg/serviceability/sa/ClhsdbScanOops.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,10 @@ private static void testWithGcType(String gc) throws Exception {
6060

6161
try {
6262
ClhsdbLauncher test = new ClhsdbLauncher();
63-
theApp = LingeredApp.startApp(gc);
63+
// This test assumes that no GC should happen during its execution.
64+
// Setting the initial heap size to a reasonable high number avoids
65+
// running a GC.
66+
theApp = LingeredApp.startApp(gc, "-XX:InitialHeapSize=100M");
6467

6568
System.out.println ("Started LingeredApp with the GC option " + gc +
6669
" and pid " + theApp.getPid());

test/jdk/com/sun/jdi/MethodInvokeWithTraceOnTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
* @library /test/lib
3030
* @run build TestScaffold VMConnection TargetListener TargetAdapter
3131
* @run compile -g MethodInvokeWithTraceOnTest.java
32-
* @run driver MethodInvokeWithTraceOnTest
32+
* @run driver MethodInvokeWithTraceOnTest -XX:InitialHeapSize=100M
3333
*/
3434

3535
import com.sun.jdi.*;

0 commit comments

Comments
 (0)