Mercurial > hg > graal-compiler
changeset 21082:266eef1c29e0
Mark locks without MonitorIdNode as eliminated
author | Tom Rodriguez <tom.rodriguez@oracle.com> |
---|---|
date | Wed, 22 Apr 2015 11:38:25 -0700 |
parents | 2e9250b29d14 |
children | 71af9afd7ff6 87aac173f09d 91d70d102132 |
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 Wed Apr 22 16:54:26 2015 +0200 +++ b/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/HotSpotDebugInfoBuilder.java Wed Apr 22 11:38:25 2015 -0700 @@ -55,7 +55,7 @@ StackSlotValue slot = lockStack.makeLockSlot(lockDepth); ValueNode lock = state.lockAt(lockIndex); Value object = toValue(lock); - boolean eliminated = object instanceof VirtualObject && state.monitorIdAt(lockIndex) != null; + boolean eliminated = object instanceof VirtualObject || state.monitorIdAt(lockIndex) == null; assert state.monitorIdAt(lockIndex) == null || state.monitorIdAt(lockIndex).getLockDepth() == lockDepth; return new StackLockValue(object, slot, eliminated); }