Skip to content

Commit e9d8963

Browse files
committed
* fix Parallel GC test after changes
1 parent 954df2c commit e9d8963

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

test/hotspot/jtreg/gc/TestUseGCOverheadLimit.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ public class TestUseGCOverheadLimit {
5252
public static void main(String args[]) throws Exception {
5353
String[] parallelArgs = {
5454
"-XX:+UseParallelGC",
55-
"-XX:NewSize=20m",
56-
"-XX:SurvivorRatio=5",
57-
"-XX:GCHeapFreeLimit=30" // Parallel GC needs to eat up all of young gen.
55+
"-XX:NewSize=122m",
56+
"-XX:SurvivorRatio=99",
57+
"-XX:GCHeapFreeLimit=10"
5858
};
5959
String[] g1Args = {
6060
"-XX:+UseG1GC",
@@ -92,6 +92,8 @@ public static void main(String[] args) {
9292
Object[] obj = new Object[10];
9393
cache[i % cache.length] = obj;
9494
}
95+
96+
System.out.println(cache);
9597
}
9698
}
9799
}

0 commit comments

Comments
 (0)