8184045: TestSystemGCWithG1.java times out on Solaris SPARC
authoraharlap
Tue, 25 Jul 2017 10:15:29 -0400
changeset 46730 01dc8e9d2da3
parent 46729 c62d2e8b2728
child 46731 71f1b50a1c6c
8184045: TestSystemGCWithG1.java times out on Solaris SPARC Summary: Avoid extra round of stressing Reviewed-by: dcubed, ehelin
hotspot/test/gc/stress/systemgc/TestSystemGC.java
--- 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();
+        }
     }
 }