--- a/src/hotspot/share/services/memoryPool.hpp Tue Sep 17 09:51:02 2019 +0200
+++ b/src/hotspot/share/services/memoryPool.hpp Tue Sep 17 09:51:02 2019 +0200
@@ -95,7 +95,7 @@
// max size could be changed
virtual size_t max_size() const { return _max_size; }
- bool is_pool(instanceHandle pool) { return oopDesc::equals(pool(), _memory_pool_obj); }
+ bool is_pool(instanceHandle pool) { return pool() == _memory_pool_obj; }
bool available_for_allocation() { return _available_for_allocation; }
bool set_available_for_allocation(bool value) {