< prev index next >

src/hotspot/share/oops/oop.hpp

Print this page

        

@@ -23,11 +23,10 @@
  */
 
 #ifndef SHARE_VM_OOPS_OOP_HPP
 #define SHARE_VM_OOPS_OOP_HPP
 
-#include "gc/shared/barrierSet.hpp"
 #include "memory/iterator.hpp"
 #include "memory/memRegion.hpp"
 #include "oops/access.hpp"
 #include "oops/metadata.hpp"
 #include "runtime/atomic.hpp"

@@ -152,18 +151,10 @@
     }
   }
 
   inline static bool equals(oop o1, oop o2) { return Access<>::equals(o1, o2); }
 
-  inline static bool safe_equals(oop o1, oop o2) {
-#ifdef ASSERT
-    BarrierSet::barrier_set()->verify_safe_oop(o1);
-    BarrierSet::barrier_set()->verify_safe_oop(o2);
-#endif
-    return unsafe_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;
< prev index next >