File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
hotspot/jtreg/serviceability/sa Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff 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 ());
Original file line number Diff line number Diff line change 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
3535import com .sun .jdi .*;
You can’t perform that action at this time.
0 commit comments