hotspot/src/share/vm/classfile/javaClasses.cpp
changeset 15098 3ed1d0332785
parent 15097 9db149412e0e
parent 14742 b2a47eb99404
child 15102 0a86564e5f61
--- a/hotspot/src/share/vm/classfile/javaClasses.cpp	Thu Dec 20 10:22:19 2012 +0100
+++ b/hotspot/src/share/vm/classfile/javaClasses.cpp	Mon Dec 24 11:46:38 2012 -0800
@@ -327,14 +327,14 @@
   return result;
 }
 
-unsigned int java_lang_String::to_hash(oop java_string) {
+unsigned int java_lang_String::hash_code(oop java_string) {
   int          length = java_lang_String::length(java_string);
-  // Zero length string will hash to zero with String.toHash() function.
+  // Zero length string will hash to zero with String.hashCode() function.
   if (length == 0) return 0;
 
   typeArrayOop value  = java_lang_String::value(java_string);
   int          offset = java_lang_String::offset(java_string);
-  return java_lang_String::to_hash(value->char_at_addr(offset), length);
+  return java_lang_String::hash_code(value->char_at_addr(offset), length);
 }
 
 char* java_lang_String::as_quoted_ascii(oop java_string) {