< prev index next >

src/hotspot/share/oops/oop.hpp

Print this page

        

@@ -44,11 +44,10 @@
 // Forward declarations.
 class OopClosure;
 class ScanClosure;
 class FastScanClosure;
 class FilteringClosure;
-class BarrierSet;
 class CMSIsAliveClosure;
 
 class PSPromotionManager;
 class ParCompactionManager;
 

@@ -152,10 +151,18 @@
     }
   }
 
   inline static bool equals(oop o1, oop o2) { return Access<>::equals(o1, o2); }
 
+  inline static bool unsafe_equals(oop o1, oop o2) {
+#ifdef CHECK_UNHANDLED_OOPS
+    return o1.obj() == o2.obj();
+#else
+    return o1 == o2;
+#endif
+  }
+
   // 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 >