# HG changeset patch # User Gilles Duboscq # Date 1392393567 -3600 # Node ID 87709646a7975c8068aa59853ab36db02330eca1 # Parent d587baa55dd73a76ae7282e19ac824f2bebb738e Fix assert in HotSpotDebugInfoBuilder diff -r d587baa55dd7 -r 87709646a797 graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/HotSpotDebugInfoBuilder.java --- a/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/HotSpotDebugInfoBuilder.java Thu Feb 13 18:46:15 2014 +0100 +++ b/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/HotSpotDebugInfoBuilder.java Fri Feb 14 16:59:27 2014 +0100 @@ -56,7 +56,7 @@ ValueNode lock = state.lockAt(lockIndex); Value object = toValue(lock); boolean eliminated = object instanceof VirtualObject && state.monitorIdAt(lockIndex) != null; - assert eliminated || state.monitorIdAt(lockIndex).getLockDepth() == lockDepth; + assert state.monitorIdAt(lockIndex) == null || state.monitorIdAt(lockIndex).getLockDepth() == lockDepth; return new HotSpotMonitorValue(object, slot, eliminated); }