src/share/vm/utilities/hashtable.hpp

changeset 3904
ace99a6ffc83
parent 3900
d2a62e0f25eb
child 3963
5e2dc722e70d
     1.1 --- a/src/share/vm/utilities/hashtable.hpp	Tue Jul 03 17:35:00 2012 -0700
     1.2 +++ b/src/share/vm/utilities/hashtable.hpp	Wed Jul 04 15:55:45 2012 -0400
     1.3 @@ -278,7 +278,14 @@
     1.4  
     1.5    // Function to move these elements into the new table.
     1.6    void move_to(Hashtable<T, F>* new_table);
     1.7 -  virtual unsigned int new_hash(T) { ShouldNotReachHere(); return 0; } // should be overridden
     1.8 +  static bool use_alternate_hashcode()  { return _seed != 0; }
     1.9 +  static jint seed()                    { return _seed; }
    1.10 +
    1.11 + private:
    1.12 +  static jint _seed;
    1.13 +
    1.14 +  unsigned int new_hash(Symbol* s);
    1.15 +  unsigned int new_hash(oop string);
    1.16  };
    1.17  
    1.18  

mercurial