# HG changeset patch # User Thomas Wuerthinger # Date 1339961752 -7200 # Node ID 380b2a73fdc2642e37e9e5bf4beea39e1bcdcb45 # Parent 9bf0810f5c6cbc45a1e5a4efac08c132ddb37bdf Treat a write to ANY_LOCATION as memory check point. diff -r 9bf0810f5c6c -r 380b2a73fdc2 graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/phases/FloatingReadPhase.java --- 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); }