8184045: TestSystemGCWithG1.java times out on Solaris SPARC
Summary: Avoid extra round of stressing
Reviewed-by: dcubed, ehelin
--- a/hotspot/test/gc/stress/systemgc/TestSystemGC.java Fri Jul 28 10:48:35 2017 -0400
+++ b/hotspot/test/gc/stress/systemgc/TestSystemGC.java Tue Jul 25 10:15:29 2017 -0400
@@ -182,9 +182,11 @@
}
public static void main(String[] args) {
- // First allocate the long lived objects and then run all phases twice.
+ // First allocate the long lived objects and then run all phases.
populateLongLived();
runAllPhases();
- runAllPhases();
+ if (args.length > 0 && args[0].equals("long")) {
+ runAllPhases();
+ }
}
}