109 ResourceMark rm; |
109 ResourceMark rm; |
110 int length; |
110 int length; |
111 jchar* chars = java_lang_String::as_unicode_string(this, length, THREAD); |
111 jchar* chars = java_lang_String::as_unicode_string(this, length, THREAD); |
112 if (chars != NULL) { |
112 if (chars != NULL) { |
113 // Use alternate hashing algorithm on the string |
113 // Use alternate hashing algorithm on the string |
114 return AltHashing::murmur3_32(seed, chars, length); |
114 return AltHashing::halfsiphash_32(seed, chars, length); |
115 } else { |
115 } else { |
116 vm_exit_out_of_memory(length, OOM_MALLOC_ERROR, "unable to create Unicode strings for String table rehash"); |
116 vm_exit_out_of_memory(length, OOM_MALLOC_ERROR, "unable to create Unicode strings for String table rehash"); |
117 return 0; |
117 return 0; |
118 } |
118 } |
119 } |
119 } |