Mercurial > hg > graal-jvmci-8
diff src/share/vm/classfile/symbolTable.hpp @ 6201:ace99a6ffc83
7181200: JVM new hashing code breaks SA in product mode
Summary: Made new_hash() overloaded rather than a virtual function so SA code doesn't need to be changed.
Reviewed-by: kvn, acorn, dholmes, fparain
author | coleenp |
---|---|
date | Wed, 04 Jul 2012 15:55:45 -0400 |
parents | d2a62e0f25eb |
children | 1d7922586cf6 |
line wrap: on
line diff
--- a/src/share/vm/classfile/symbolTable.hpp Tue Jul 03 17:35:00 2012 -0700 +++ b/src/share/vm/classfile/symbolTable.hpp Wed Jul 04 15:55:45 2012 -0400 @@ -81,7 +81,6 @@ // Set if one bucket is out of balance due to hash algorithm deficiency static bool _needs_rehashing; - static jint _seed; // For statistics static int symbols_removed; @@ -124,11 +123,6 @@ static Arena* arena() { return _arena; } // called for statistics static void initialize_symbols(int arena_alloc_size = 0); - - static bool use_alternate_hashcode() { return _seed != 0; } - static jint seed() { return _seed; } - - unsigned int new_hash(Symbol* sym); public: enum { symbol_alloc_batch_size = 8, @@ -247,7 +241,6 @@ // Set if one bucket is out of balance due to hash algorithm deficiency static bool _needs_rehashing; - static jint _seed; static oop intern(Handle string_or_null, jchar* chars, int length, TRAPS); oop basic_add(int index, Handle string_or_null, jchar* name, int len, @@ -261,11 +254,6 @@ StringTable(HashtableBucket<mtSymbol>* t, int number_of_entries) : Hashtable<oop, mtSymbol>((int)StringTableSize, sizeof (HashtableEntry<oop, mtSymbol>), t, number_of_entries) {} - - static bool use_alternate_hashcode() { return _seed != 0; } - static jint seed() { return _seed; } - - unsigned int new_hash(oop s); public: // The string table static StringTable* the_table() { return _the_table; }