< prev index next >

src/hotspot/share/services/memoryPool.hpp

Print this page
rev 49250 : [mq]: JDK-8199781.patch

@@ -90,11 +90,11 @@
   size_t      initial_size()   const       { return _initial_size; }
   int         num_memory_managers() const  { return _num_managers; }
   // max size could be changed
   virtual size_t max_size()    const       { return _max_size; }
 
-  bool is_pool(instanceHandle pool) { return (pool() == _memory_pool_obj); }
+  bool is_pool(instanceHandle pool) { return oopDesc::equals(pool(), _memory_pool_obj); }
 
   bool available_for_allocation()   { return _available_for_allocation; }
   bool set_available_for_allocation(bool value) {
     bool prev = _available_for_allocation;
     _available_for_allocation = value;
< prev index next >