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