# HG changeset patch # User Roland Schatz # Date 1427794804 -7200 # Node ID de3b84bf239be8257421cb0d4ced0f918ffb4938 # Parent 5d069d341b7da76fc2a9f058f44340fb628b03a1 Assert that lastLocationAccess is non-null for reads of mutable locations. diff -r 5d069d341b7d -r de3b84bf239b graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/extended/FloatingReadNode.java --- a/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/extended/FloatingReadNode.java Tue Mar 31 11:35:31 2015 +0200 +++ b/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/extended/FloatingReadNode.java Tue Mar 31 11:40:04 2015 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -81,4 +81,11 @@ public FixedAccessNode asFixedNode() { return graph().add(new ReadNode(object(), accessLocation(), stamp(), getGuard(), getBarrierType())); } + + @Override + public boolean verify() { + MemoryNode lla = getLastLocationAccess(); + assert lla != null || getLocationIdentity().isImmutable() : "lastLocationAccess of " + this + " shouldn't be null for mutable location identity " + getLocationIdentity(); + return super.verify(); + } }