# HG changeset patch # User Lukas Stadler # Date 1397727154 -7200 # Node ID c52e6ff7b8caf3737ebbaec8f75469b501c54caf # Parent a7d08ab4842f722364535031de9c925059eebf9f check isLegal before checking isExactType in ObjectGetClassNode diff -r a7d08ab4842f -r c52e6ff7b8ca graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/replacements/ObjectGetClassNode.java --- a/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/replacements/ObjectGetClassNode.java Thu Apr 17 11:32:26 2014 +0200 +++ b/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/replacements/ObjectGetClassNode.java Thu Apr 17 11:32:34 2014 +0200 @@ -71,7 +71,7 @@ Stamp stamp = getObject().stamp(); if (stamp instanceof ObjectStamp) { ObjectStamp objectStamp = (ObjectStamp) stamp; - if (objectStamp.isExactType()) { + if (objectStamp.isLegal() && objectStamp.isExactType()) { Constant clazz = objectStamp.type().getEncoding(Representation.JavaClass); return ConstantNode.forConstant(clazz, tool.getMetaAccess(), graph()); }