changeset 46730:01dc8e9d2da3

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 c62d2e8b2728
children 71f1b50a1c6c
files hotspot/test/gc/stress/systemgc/TestSystemGC.java
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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();
+        }
     }
 }