< prev index next >

src/hotspot/share/services/memoryPool.hpp

erik_version

roman_version

*** 24,33 **** --- 24,34 ---- #ifndef SHARE_VM_SERVICES_MEMORYPOOL_HPP #define SHARE_VM_SERVICES_MEMORYPOOL_HPP #include "memory/heap.hpp" + #include "oops/oop.hpp" #include "services/memoryUsage.hpp" #include "utilities/macros.hpp" // A memory pool represents the memory area that the VM manages. // The Java virtual machine has at least one memory pool ***************
*** 90,100 **** 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 available_for_allocation() { return _available_for_allocation; } bool set_available_for_allocation(bool value) { bool prev = _available_for_allocation; _available_for_allocation = value; --- 91,101 ---- 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 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 >