changeset 13954:87709646a797

Fix assert in HotSpotDebugInfoBuilder
author Gilles Duboscq <duboscq@ssw.jku.at>
date Fri, 14 Feb 2014 16:59:27 +0100
parents d587baa55dd7
children f80a8503cf24
files graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/HotSpotDebugInfoBuilder.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);
     }