# HG changeset patch # User Christos Kotselidis # Date 1366721497 -7200 # Node ID 3f67694757413394d6e2ae56a740209143e5c48c # Parent e49ea51a33953b5493f741924b0a8d765cb1cda6# Parent ba3dfa9e36d8510c71c8a79f4f81c85aa597793a Merge diff -r ba3dfa9e36d8 -r 3f6769475741 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 11:29:55 2013 +0200 +++ b/graal/com.oracle.graal.compiler.test/src/com/oracle/graal/compiler/test/WriteBarrierAdditionTest.java Tue Apr 23 14:51:37 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); } } }