mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
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:
parent
af253d110d
commit
559278381b
4 changed files with 32 additions and 38 deletions
|
@ -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);
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue