changeset 13405:f1b91fc6ecc1

8184045: TestSystemGCWithG1.java times out on Solaris SPARC Summary: Avoid extra round of stressing Reviewed-by: dcubed, ehelin
author aharlap
date Tue, 25 Jul 2017 10:15:29 -0400
parents 46bb2774fc88
children 061ea88a858e
files test/gc/stress/systemgc/TestSystemGC.java
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/test/gc/stress/systemgc/TestSystemGC.java	Fri Jul 28 10:48:35 2017 -0400
+++ b/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();
+        }
     }
 }