This is a performance bug.
oop StringTable::lookup_shared(jchar* name, int len) {
return _shared_table.lookup((const char*)name,
java_lang_String::hash_code(name, len), len);
}
There's no point of calculating the hash code if _shared_table is empty.
oop StringTable::lookup_shared(jchar* name, int len) {
return _shared_table.lookup((const char*)name,
java_lang_String::hash_code(name, len), len);
}
There's no point of calculating the hash code if _shared_table is empty.
- duplicates
-
JDK-8176593 Throwable::getStackTrace performance regression
-
- Closed
-