7181200: JVM new hashing code breaks SA in product mode

Made new_hash() overloaded rather than a virtual function so SA code doesn't need to be changed.

Reviewed-by: kvn, acorn, dholmes, fparain
This commit is contained in:
Coleen Phillimore 2012-07-04 15:55:45 -04:00
parent af253d110d
commit 559278381b
4 changed files with 32 additions and 38 deletions

View file

@ -278,7 +278,14 @@ protected:
// Function to move these elements into the new table.
void move_to(Hashtable<T, F>* new_table);
virtual unsigned int new_hash(T) { ShouldNotReachHere(); return 0; } // should be overridden
static bool use_alternate_hashcode() { return _seed != 0; }
static jint seed() { return _seed; }
private:
static jint _seed;
unsigned int new_hash(Symbol* s);
unsigned int new_hash(oop string);
};