8178048: [JVMCI] improve HotSpotResolvedJavaFieldImpl.hashCode()
authorchaeubl
Wed, 15 Nov 2017 13:46:21 +0100
changeset 47893 ef2e9b041e32
parent 47892 895fddb973a1
child 47896 7092940fbaff
8178048: [JVMCI] improve HotSpotResolvedJavaFieldImpl.hashCode() Reviewed-by: kvn
src/jdk.internal.vm.ci/share/classes/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotResolvedJavaFieldImpl.java
--- a/src/jdk.internal.vm.ci/share/classes/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotResolvedJavaFieldImpl.java	Wed Nov 15 00:49:57 2017 -0800
+++ b/src/jdk.internal.vm.ci/share/classes/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotResolvedJavaFieldImpl.java	Wed Nov 15 13:46:21 2017 +0100
@@ -76,7 +76,7 @@
 
     @Override
     public int hashCode() {
-        return offset ^ modifiers;
+        return holder.hashCode() ^ offset;
     }
 
     @Override