8270333: -XX:+VerifyStringTableAtExit should not do linear search

Reviewed-by: dholmes, minqi
This commit is contained in:
Ioi Lam 2021-07-15 05:15:24 +00:00
parent 04b73bc4e0
commit 1ebd9469db
3 changed files with 37 additions and 21 deletions

View file

@ -127,6 +127,8 @@ class java_lang_String : AllStatic {
// returning true if the bit was already set.
static bool test_and_set_flag(oop java_string, uint8_t flag_mask);
static inline unsigned int hash_code_impl(oop java_string, bool update);
public:
// Coders
@ -222,6 +224,7 @@ class java_lang_String : AllStatic {
}
static unsigned int hash_code(oop java_string);
static unsigned int hash_code_noupdate(oop java_string);
static bool equals(oop java_string, const jchar* chars, int len);
static bool equals(oop str1, oop str2);