< prev index next >

src/hotspot/share/classfile/stringTable.cpp

Print this page

        

@@ -759,10 +759,12 @@
     oop s = val->peek();
     if (s == NULL) {
       return true;
     }
     unsigned int hash = java_lang_String::hash_code(s);
+
+    java_lang_String::set_hash(s, hash);
     oop new_s = StringTable::create_archived_string(s, Thread::current());
     if (new_s == NULL) {
       return true;
     }
 
< prev index next >