< prev index next >

src/hotspot/share/gc/shared/stringdedup/stringDedupTable.cpp

Print this page

        

@@ -373,11 +373,11 @@
       java_lang_String::set_hash(java_string, hash);
     }
   }
 
   typeArrayOop existing_value = lookup_or_add(value, latin1, hash);
-  if (existing_value == value) {
+  if (oopDesc::unsafe_equals(existing_value, value)) {
     // Same value, already known
     stat->inc_known();
     return;
   }
 
< prev index next >