mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8270333: -XX:+VerifyStringTableAtExit should not do linear search
Reviewed-by: dholmes, minqi
This commit is contained in:
parent
04b73bc4e0
commit
1ebd9469db
3 changed files with 37 additions and 21 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue