hotspot/src/share/vm/utilities/hashtable.hpp
changeset 13199 025b0984feea
parent 13195 be27e1b6a4b9
child 13342 76a5de64aa62
equal deleted inserted replaced
13198:271c557a7623 13199:025b0984feea
   276     return (HashtableEntry<T, F>**)BasicHashtable<F>::bucket_addr(i);
   276     return (HashtableEntry<T, F>**)BasicHashtable<F>::bucket_addr(i);
   277   }
   277   }
   278 
   278 
   279   // Function to move these elements into the new table.
   279   // Function to move these elements into the new table.
   280   void move_to(Hashtable<T, F>* new_table);
   280   void move_to(Hashtable<T, F>* new_table);
   281   virtual unsigned int new_hash(T) { ShouldNotReachHere(); return 0; } // should be overridden
   281   static bool use_alternate_hashcode()  { return _seed != 0; }
       
   282   static jint seed()                    { return _seed; }
       
   283 
       
   284  private:
       
   285   static jint _seed;
       
   286 
       
   287   unsigned int new_hash(Symbol* s);
       
   288   unsigned int new_hash(oop string);
   282 };
   289 };
   283 
   290 
   284 
   291 
   285 //  Verions of hashtable where two handles are used to compute the index.
   292 //  Verions of hashtable where two handles are used to compute the index.
   286 
   293