# HG changeset patch # User Christos Kotselidis # Date 1366721468 -7200 # Node ID e49ea51a33953b5493f741924b0a8d765cb1cda6 # Parent 3370b7abcc6e699cb0167293cf2407fece433fa3 Small changes to WriteBarrierAddition test diff -r 3370b7abcc6e -r e49ea51a3395 graal/com.oracle.graal.compiler.test/src/com/oracle/graal/compiler/test/WriteBarrierAdditionTest.java --- a/graal/com.oracle.graal.compiler.test/src/com/oracle/graal/compiler/test/WriteBarrierAdditionTest.java Tue Apr 23 09:41:10 2013 +0200 +++ b/graal/com.oracle.graal.compiler.test/src/com/oracle/graal/compiler/test/WriteBarrierAdditionTest.java Tue Apr 23 14:51:08 2013 +0200 @@ -48,8 +48,7 @@ main.b = temp2; } - public static void test2Snippet() { - boolean test = true; + public static void test2Snippet(boolean test) { Container main = new Container(); Container temp1 = new Container(); Container temp2 = new Container(); @@ -57,11 +56,9 @@ if (test) { main.a = temp1; main.b = temp2; - test = false; } else { main.a = temp2; main.b = temp1; - test = true; } } } @@ -108,7 +105,7 @@ for (WriteNode write : graph.getNodes(WriteNode.class)) { if (write.getWriteBarrierType() != WriteBarrierType.NONE) { Assert.assertTrue(write.successors().count() == 1); - Assert.assertTrue(write.successors().first() instanceof SerialWriteBarrier); + Assert.assertTrue(write.next() instanceof SerialWriteBarrier); } } }