src/hotspot/share/services/memoryManager.hpp
changeset 49658 8237a91c1cca
parent 48168 cb5d2d4453d0
child 49936 4da7dce7e2bf
child 56422 b09629f4b243
--- a/src/hotspot/share/services/memoryManager.hpp	Tue Apr 03 10:27:46 2018 +0200
+++ b/src/hotspot/share/services/memoryManager.hpp	Tue Apr 03 13:15:27 2018 +0200
@@ -27,6 +27,7 @@
 
 #include "gc/shared/gcCause.hpp"
 #include "memory/allocation.hpp"
+#include "oops/oop.hpp"
 #include "oops/oopsHierarchy.hpp"
 #include "runtime/handles.hpp"
 #include "runtime/timer.hpp"
@@ -68,7 +69,7 @@
 
   void add_pool(MemoryPool* pool);
 
-  bool is_manager(instanceHandle mh)     { return mh() == _memory_mgr_obj; }
+  bool is_manager(instanceHandle mh)     { return oopDesc::equals(mh(), _memory_mgr_obj); }
 
   virtual instanceOop get_memory_manager_instance(TRAPS);
   virtual bool is_gc_memory_manager()    { return false; }