< prev index next >

test/hotspot/jtreg/compiler/c2/aarch64/TestVolatiles.java

Print this page
rev 58687 : Shenandoah: New incremental-update mode

@@ -36,11 +36,12 @@
  *                       TestUnsafeVolatileCAE,
  *                       TestUnsafeVolatileGAS}
  * and <testtype> in {G1,
  *                    Serial,
  *                    Parallel,
- *                    Shenandoah}
+ *                    Shenandoah,
+ *                    ShenandoahIU}
  */
 
 
 package compiler.c2.aarch64;
 

@@ -91,10 +92,17 @@
             argcount = 10;
             procArgs = new String[argcount];
             procArgs[argcount - 3] = "-XX:+UnlockExperimentalVMOptions";
             procArgs[argcount - 2] = "-XX:+UseShenandoahGC";
             break;
+        case "ShenandoahIU":
+            argcount = 11;
+            procArgs = new String[argcount];
+            procArgs[argcount - 4] = "-XX:+UnlockExperimentalVMOptions";
+            procArgs[argcount - 3] = "-XX:+UseShenandoahGC";
+            procArgs[argcount - 2] = "-XX:ShenandoahGCMode=iu";
+            break;
         default:
             throw new RuntimeException("unexpected test type " + testType);
         }
 
         // fill in arguments common to all cases

@@ -321,10 +329,11 @@
                     "dmb ish",
                     "strb"
                 };
                 break;
             case "Shenandoah":
+            case "ShenandoahIU":
                  // Shenandoah generates normal object graphs for
                  // volatile stores
                 matches = new String[] {
                     "membar_release \\(elided\\)",
                     useCompressedOops ? "stlrw?" : "stlr",

@@ -399,10 +408,11 @@
                     "ret"
                 };
                 break;
 
             case "Shenandoah":
+            case "ShenandoahIU":
                  // Shenandoah generates normal object graphs for
                  // volatile stores
                 matches = new String[] {
                     "membar_release",
                     "dmb ish",

@@ -488,10 +498,11 @@
                     "dmb ish",
                     "strb"
                 };
                 break;
             case "Shenandoah":
+            case "ShenandoahIU":
                 // For volatile CAS, Shenanodoah generates normal
                 // graphs with a shenandoah-specific cmpxchg
                 matches = new String[] {
                     "membar_release \\(elided\\)",
                     useCompressedOops ? "cmpxchgw?_acq_shenandoah" : "cmpxchg_acq_shenandoah",

@@ -565,10 +576,11 @@
                     "dmb ish",
                     "ret"
                 };
                 break;
             case "Shenandoah":
+            case "ShenandoahIU":
                 // For volatile CAS, Shenanodoah generates normal
                 // graphs with a shenandoah-specific cmpxchg
                 matches = new String[] {
                     "membar_release",
                     "dmb ish",

@@ -670,10 +682,11 @@
                     "dmb ish",
                     "strb"
                 };
                 break;
             case "Shenandoah":
+            case "ShenandoahIU":
                 // For volatile CAS, Shenanodoah generates normal
                 // graphs with a shenandoah-specific cmpxchg
                 matches = new String[] {
                     "membar_release \\(elided\\)",
                     useCompressedOops ? "cmpxchgw?_acq_shenandoah" : "cmpxchg_acq_shenandoah",

@@ -747,10 +760,11 @@
                     "dmb ish",
                     "ret"
                 };
                 break;
             case "Shenandoah":
+            case "ShenandoahIU":
                 // For volatile CAS, Shenanodoah generates normal
                 // graphs with a shenandoah-specific cmpxchg
                 matches = new String[] {
                     "membar_release",
                     "dmb ish",

@@ -832,10 +846,11 @@
                     "dmb ish",
                     "strb"
                 };
                 break;
             case "Shenandoah":
+            case "ShenandoahIU":
                 matches = new String[] {
                     "membar_release \\(elided\\)",
                     useCompressedOops ? "atomic_xchgw?_acq" : "atomic_xchg_acq",
                     "membar_acquire \\(elided\\)",
                     "ret"

@@ -907,10 +922,11 @@
                     "dmb ish",
                     "ret"
                 };
                 break;
             case "Shenandoah":
+            case "ShenandoahIU":
                 matches = new String[] {
                     "membar_release",
                     "dmb ish",
                     useCompressedOops ? "atomic_xchgw? " : "atomic_xchg ",
                     "membar_acquire",
< prev index next >