Mercurial > hg > graal-compiler
changeset 6288:b9e65869ceff
fix to new escape analysis infrastructure
author | Lukas Stadler <lukas.stadler@jku.at> |
---|---|
date | Tue, 28 Aug 2012 11:26:22 +0200 |
parents | d7aec4f15658 |
children | 72eb3a1a20c4 |
files | graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/gen/DebugInfoBuilder.java |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/gen/DebugInfoBuilder.java Tue Aug 28 10:56:35 2012 +0200 +++ b/graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/gen/DebugInfoBuilder.java Tue Aug 28 11:26:22 2012 +0200 @@ -53,7 +53,6 @@ FrameState current = topState; do { for (EscapeObjectState state : current.virtualObjectMappings()) { - // null states occur for objects with 0 fields if (objectStates == null) { objectStates = new IdentityHashMap<>(); } @@ -146,7 +145,8 @@ if (value instanceof VirtualObjectNode) { VirtualObjectNode obj = (VirtualObjectNode) value; EscapeObjectState state = objectStates.get(obj); - if (state == null) { + if (state == null && obj.fieldsCount() > 0) { + // null states occur for objects with 0 fields throw new GraalInternalError("no mapping found for virtual object %s", obj); } if (state instanceof MaterializedObjectState) {