< prev index next >

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

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

*** 38,57 **** public class TestWrongBarrierDisable { public static void main(String[] args) throws Exception { String[] concurrent = { "ShenandoahLoadRefBarrier", "ShenandoahCASBarrier", "ShenandoahCloneBarrier", - "ShenandoahSATBBarrier", }; shouldFailAll("-XX:ShenandoahGCHeuristics=adaptive", concurrent); shouldFailAll("-XX:ShenandoahGCHeuristics=static", concurrent); shouldFailAll("-XX:ShenandoahGCHeuristics=compact", concurrent); shouldFailAll("-XX:ShenandoahGCHeuristics=aggressive", concurrent); shouldPassAll("-XX:ShenandoahGCMode=passive", concurrent); } private static void shouldFailAll(String h, String[] barriers) throws Exception { for (String b : barriers) { ProcessBuilder pb = ProcessTools.createJavaProcessBuilder( --- 38,64 ---- public class TestWrongBarrierDisable { public static void main(String[] args) throws Exception { String[] concurrent = { "ShenandoahLoadRefBarrier", + "ShenandoahSATBBarrier", + "ShenandoahCASBarrier", + "ShenandoahCloneBarrier", + }; + String[] iu = { + "ShenandoahLoadRefBarrier", "ShenandoahCASBarrier", "ShenandoahCloneBarrier", }; 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); } private static void shouldFailAll(String h, String[] barriers) throws Exception { for (String b : barriers) { ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(
< prev index next >