changeset 9249:3f6769475741

Merge
author Christos Kotselidis <christos.kotselidis@oracle.com>
date Tue, 23 Apr 2013 14:51:37 +0200
parents e49ea51a3395 (diff) ba3dfa9e36d8 (current diff)
children dd596345f28a
files
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 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);
                     }
                 }
             }