Mercurial > hg > graal-jvmci-8
changeset 9248:e49ea51a3395
Small changes to WriteBarrierAddition test
author | Christos Kotselidis <christos.kotselidis@oracle.com> |
---|---|
date | Tue, 23 Apr 2013 14:51:08 +0200 |
parents | 3370b7abcc6e |
children | 3f6769475741 |
files | graal/com.oracle.graal.compiler.test/src/com/oracle/graal/compiler/test/WriteBarrierAdditionTest.java |
diffstat | 1 files changed, 2 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- 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); } } }