< prev index next >

test/hotspot/jtreg/gc/shenandoah/options/TestWrongBarrierDisable.java

Print this page
@@ -50,17 +50,24 @@
                  "ShenandoahCASBarrier",
                  "ShenandoahCloneBarrier",
                  "ShenandoahStackWatermarkBarrier",
          };
  
+         String[] generational = {
+                 "ShenandoahCardBarrier"
+         };
+ 
          shouldFailAll("-XX:ShenandoahGCHeuristics=adaptive",   concurrent);
          shouldFailAll("-XX:ShenandoahGCHeuristics=static",     concurrent);
          shouldFailAll("-XX:ShenandoahGCHeuristics=compact",    concurrent);
          shouldFailAll("-XX:ShenandoahGCHeuristics=aggressive", concurrent);
          shouldFailAll("-XX:ShenandoahGCMode=iu",               iu);
          shouldPassAll("-XX:ShenandoahGCMode=passive",          concurrent);
          shouldPassAll("-XX:ShenandoahGCMode=passive",          iu);
+         shouldPassAll("-XX:ShenandoahGCMode=passive",          generational);
+         shouldPassAll("-XX:ShenandoahGCMode=satb",             generational);
+         shouldFailAll("-XX:ShenandoahGCMode=generational",     generational);
      }
  
      private static void shouldFailAll(String h, String[] barriers) throws Exception {
          for (String b : barriers) {
              OutputAnalyzer output = ProcessTools.executeLimitedTestJava(
< prev index next >