< prev index next >

src/hotspot/share/oops/accessBackend.hpp

Print this page
rev 51997 : 8211279: Verify missing object equals barriers

@@ -408,11 +408,11 @@
 
   static void clone(oop src, oop dst, size_t size);
 
   static oop resolve(oop obj) { return obj; }
 
-  static bool equals(oop o1, oop o2) { return o1 == o2; }
+  static bool equals(oop o1, oop o2) { return (void*)o1 == (void*)o2; }
 };
 
 // Below is the implementation of the first 4 steps of the template pipeline:
 // * Step 1: Set default decorators and decay types. This step gets rid of CV qualifiers
 //           and sets default decorators to sensible values.
< prev index next >