src/hotspot/share/runtime/handles.hpp
changeset 58177 4932dce35882
parent 53682 e30211561a17
child 59056 15936b142f86
--- a/src/hotspot/share/runtime/handles.hpp	Tue Sep 17 09:51:02 2019 +0200
+++ b/src/hotspot/share/runtime/handles.hpp	Tue Sep 17 09:51:02 2019 +0200
@@ -79,8 +79,8 @@
   oop     operator () () const                   { return obj(); }
   oop     operator -> () const                   { return non_null_obj(); }
 
-  bool operator == (oop o) const                 { return oopDesc::equals(obj(), o); }
-  bool operator == (const Handle& h) const       { return oopDesc::equals(obj(), h.obj()); }
+  bool operator == (oop o) const                 { return obj() == o; }
+  bool operator == (const Handle& h) const       { return obj() == h.obj(); }
 
   // Null checks
   bool    is_null() const                        { return _handle == NULL; }