mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8144940: Broken hash in string table entry in closed/runtime/7158800/BadUtf8.java
Fix code broken with compact Strings. Reviewed-by: iklam, thartmann, hseigel, jiangli
This commit is contained in:
parent
d444e55969
commit
ff04be3cf5
4 changed files with 22 additions and 29 deletions
|
@ -155,11 +155,6 @@ class java_lang_String : AllStatic {
|
|||
}
|
||||
|
||||
static unsigned int hash_code(oop java_string);
|
||||
static unsigned int latin1_hash_code(typeArrayOop value, int len);
|
||||
|
||||
// This is the string hash code used by the StringTable, which may be
|
||||
// the same as String.hashCode or an alternate hash code.
|
||||
static unsigned int hash_string(oop java_string);
|
||||
|
||||
static bool equals(oop java_string, jchar* chars, int len);
|
||||
static bool equals(oop str1, oop str2);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue