< prev index next >

src/hotspot/share/oops/oop.hpp

Print this page

        

@@ -152,10 +152,14 @@
     }
   }
 
   inline static bool equals(oop o1, oop o2) { return Access<>::equals(o1, o2); }
 
+  inline static bool unsafe_equals(oop o1, oop o2) {
+    return (void*) o1 == (void*) o2;
+  }
+
   // Access to fields in a instanceOop through these methods.
   template <DecoratorSet decorator>
   oop obj_field_access(int offset) const;
   oop obj_field(int offset) const;
   void obj_field_put(int offset, oop value);
< prev index next >