< prev index next >

src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/utilities/Hashtable.java

Print this page

        

*** 25,34 **** --- 25,35 ---- package sun.jvm.hotspot.utilities; import java.util.*; import sun.jvm.hotspot.debugger.*; import sun.jvm.hotspot.types.*; + import sun.jvm.hotspot.oops.*; import sun.jvm.hotspot.runtime.*; public class Hashtable extends BasicHashtable { static { VM.registerVMInitializedObserver(new Observer() {
*** 46,55 **** --- 47,60 ---- // derived class may return Class<? extends HashtableEntry> protected Class getHashtableEntryClass() { return HashtableEntry.class; } + public int computeHash(Symbol name) { + return (int) name.identityHash(); + } + public int hashToIndex(long fullHash) { return (int) (fullHash % tableSize()); } public Hashtable(Address addr) {
< prev index next >