src/hotspot/share/runtime/handles.hpp
changeset 49658 8237a91c1cca
parent 49449 ef5d5d343e2a
child 53244 9807daeb47c4
--- a/src/hotspot/share/runtime/handles.hpp	Tue Apr 03 10:27:46 2018 +0200
+++ b/src/hotspot/share/runtime/handles.hpp	Tue Apr 03 13:15:27 2018 +0200
@@ -77,8 +77,9 @@
   // General access
   oop     operator () () const                   { return obj(); }
   oop     operator -> () const                   { return non_null_obj(); }
-  bool    operator == (oop o) const              { return obj() == o; }
-  bool    operator == (const Handle& h) const          { return obj() == h.obj(); }
+
+  bool operator == (oop o) const                 { return oopDesc::equals(obj(), o); }
+  bool operator == (const Handle& h) const       { return oopDesc::equals(obj(), h.obj()); }
 
   // Null checks
   bool    is_null() const                        { return _handle == NULL; }