hotspot/src/share/vm/classfile/symbolTable.cpp
changeset 33638 ef49ed90010b
parent 33593 60764a78fa5c
parent 33628 09241459a8b8
child 34237 c34adffc35c0
equal deleted inserted replaced
33626:3c94db05e903 33638:ef49ed90010b
   242 
   242 
   243 // Pick hashing algorithm.
   243 // Pick hashing algorithm.
   244 unsigned int SymbolTable::hash_symbol(const char* s, int len) {
   244 unsigned int SymbolTable::hash_symbol(const char* s, int len) {
   245   return use_alternate_hashcode() ?
   245   return use_alternate_hashcode() ?
   246            AltHashing::murmur3_32(seed(), (const jbyte*)s, len) :
   246            AltHashing::murmur3_32(seed(), (const jbyte*)s, len) :
   247            java_lang_String::hash_code(s, len);
   247            java_lang_String::hash_code((const jbyte*)s, len);
   248 }
   248 }
   249 
   249 
   250 
   250 
   251 // We take care not to be blocking while holding the
   251 // We take care not to be blocking while holding the
   252 // SymbolTable_lock. Otherwise, the system might deadlock, since the
   252 // SymbolTable_lock. Otherwise, the system might deadlock, since the