< prev index next >

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

Print this page

        

@@ -25,10 +25,11 @@
 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,10 +47,14 @@
   // 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 >