--- old/agent/src/share/classes/sun/jvm/hotspot/oops/Symbol.java Tue Jun 30 09:18:15 2015 +++ new/agent/src/share/classes/sun/jvm/hotspot/oops/Symbol.java Tue Jun 30 09:18:14 2015 @@ -47,7 +47,7 @@ Type type = db.lookupType("Symbol"); length = type.getCIntegerField("_length"); baseOffset = type.getField("_body").getOffset(); - idHash = type.getJShortField("_identity_hash"); + idHash = type.getCIntegerField("_identity_hash"); } // Format: @@ -81,9 +81,9 @@ return addr.getJByteAt(baseOffset + index); } - private static JShortField idHash; + private static CIntegerField idHash; - public short identityHash() { return (short)idHash.getValue(this.addr); } + public int identityHash() { return (int)idHash.getValue(this.addr); } public boolean equals(byte[] modUTF8Chars) { int l = (int) getLength();