# HG changeset patch # User Doug Simon # Date 1428586551 -7200 # Node ID 64cf983d55ed9a65bc45754db7c6d30c769a21c8 # Parent d5a1a7c5b43a5945e04662250a604c96fa2c019c disable use of IdentityHashCodeNode for Object.hashCode (temp workaround) diff -r d5a1a7c5b43a -r 64cf983d55ed graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/meta/HotSpotGraphBuilderPlugins.java --- a/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/meta/HotSpotGraphBuilderPlugins.java Thu Apr 09 15:06:08 2015 +0200 +++ b/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/meta/HotSpotGraphBuilderPlugins.java Thu Apr 09 15:35:51 2015 +0200 @@ -100,12 +100,7 @@ return true; } }); - r.register1("hashCode", Receiver.class, new InvocationPlugin() { - public boolean apply(GraphBuilderContext b, ResolvedJavaMethod targetMethod, Receiver receiver) { - b.addPush(new IdentityHashCodeNode(b.getInvokeKind(), targetMethod, b.bci(), b.getInvokeReturnType(), receiver.get())); - return true; - } - }); + r.registerMethodSubstitution(ObjectSubstitutions.class, "hashCode", Receiver.class); } private static void registerClassPlugins(InvocationPlugins plugins) {