changeset 257:6e1413cbb7e0

Runners: reconsider VM modes to run in.
author shade
date Mon, 16 May 2016 20:28:40 +0300
parents 21cd08a886cd
children 90d6ad22e6c9
files jcstress-core/src/main/java/org/openjdk/jcstress/vm/VMSupport.java
diffstat 1 files changed, 14 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/jcstress-core/src/main/java/org/openjdk/jcstress/vm/VMSupport.java	Mon May 16 19:55:04 2016 +0300
+++ b/jcstress-core/src/main/java/org/openjdk/jcstress/vm/VMSupport.java	Mon May 16 20:28:40 2016 +0300
@@ -80,11 +80,23 @@
 
     public static void detectAvailableVMModes() {
         List<List<String>> modes = Arrays.asList(
+                // Intepreted
                 Arrays.asList("-Xint"),
+
+                // Tiered C1
+                Arrays.asList("-XX:TieredStopAtLevel=1"),
+
+                // Non-tiered C1
                 Arrays.asList("-client"),
-                Arrays.asList("-XX:TieredStopAtLevel=1"),
+                Arrays.asList("-client", "-XX:-TieredCompilation"),
+
+                // Tiered C2
                 Arrays.asList("-server"),
-                Arrays.asList("-server", "-XX:+UnlockDiagnosticVMOptions", "-XX:+StressLCM", "-XX:+StressGCM")
+                Arrays.asList("-server", "-XX:+UnlockDiagnosticVMOptions", "-XX:+StressLCM", "-XX:+StressGCM"),
+
+                // Non-tiered C2
+                Arrays.asList("-server", "-XX:-TieredCompilation"),
+                Arrays.asList("-server", "-XX:-TieredCompilation", "-XX:+UnlockDiagnosticVMOptions", "-XX:+StressLCM", "-XX:+StressGCM")
         );
 
         System.out.println("Probing what VM modes are available:");