src/share/vm/oops/oop.cpp

changeset 10015
eb7ce841ccec
parent 9448
73d689add964
parent 10009
8adf45218add
equal deleted inserted replaced
9934:2251ba078bec 10015:eb7ce841ccec
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 }

mercurial