--- old/src/hotspot/share/classfile/stringTable.cpp 2019-04-10 18:49:43.311406000 -0400 +++ new/src/hotspot/share/classfile/stringTable.cpp 2019-04-10 18:49:42.407315600 -0400 @@ -761,6 +761,8 @@ 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;