changeset 5637:380b2a73fdc2

Treat a write to ANY_LOCATION as memory check point.
author Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
date Sun, 17 Jun 2012 21:35:52 +0200
parents 9bf0810f5c6c
children a82376ebaaa9
files graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/phases/FloatingReadPhase.java
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/phases/FloatingReadPhase.java	Sun Jun 17 18:06:27 2012 +0200
+++ b/graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/phases/FloatingReadPhase.java	Sun Jun 17 21:35:52 2012 +0200
@@ -138,6 +138,9 @@
         }
 
         public void processWrite(WriteNode writeNode) {
+            if (writeNode.location().locationIdentity() == LocationNode.ANY_LOCATION) {
+                map.clear();
+            }
             map.put(writeNode.location().locationIdentity(), writeNode);
         }