src/hotspot/share/oops/constantPool.cpp
changeset 54379 40a7e2fc9beb
parent 53838 c8c9bd65c198
child 54432 532e88de77eb
--- a/src/hotspot/share/oops/constantPool.cpp	Tue Apr 02 11:24:40 2019 +0200
+++ b/src/hotspot/share/oops/constantPool.cpp	Tue Apr 02 11:37:11 2019 +0200
@@ -280,9 +280,7 @@
       rr->obj_at_put(i, NULL);
       if (p != NULL && i < ref_map_len) {
         int index = object_to_cp_index(i);
-        // Skip the entry if the string hash code is 0 since the string
-        // is not included in the shared string_table, see StringTable::copy_shared_string.
-        if (tag_at(index).is_string() && java_lang_String::hash_code(p) != 0) {
+        if (tag_at(index).is_string()) {
           oop op = StringTable::create_archived_string(p, THREAD);
           // If the String object is not archived (possibly too large),
           // NULL is returned. Also set it in the array, so we won't