equal
deleted
inserted
replaced
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 |