< prev index next >
src/hotspot/share/services/memoryPool.cpp
Print this page
rev 47957 : 8191564: Refactor GC related servicability code into GC specific subclasses
*** 36,48 ****
#include "services/management.hpp"
#include "services/memoryManager.hpp"
#include "services/memoryPool.hpp"
#include "utilities/globalDefinitions.hpp"
#include "utilities/macros.hpp"
- #if INCLUDE_ALL_GCS
- #include "gc/cms/compactibleFreeListSpace.hpp"
- #endif
MemoryPool::MemoryPool(const char* name,
PoolType type,
size_t init_size,
size_t max_size,
--- 36,45 ----
*** 226,258 ****
size_t committed = committed_in_bytes();
return MemoryUsage(initial_size(), used, committed, maxSize);
}
- #if INCLUDE_ALL_GCS
- CompactibleFreeListSpacePool::CompactibleFreeListSpacePool(CompactibleFreeListSpace* space,
- const char* name,
- PoolType type,
- size_t max_size,
- bool support_usage_threshold) :
- CollectedMemoryPool(name, type, space->capacity(), max_size,
- support_usage_threshold), _space(space) {
- }
-
- size_t CompactibleFreeListSpacePool::used_in_bytes() {
- return _space->used();
- }
-
- MemoryUsage CompactibleFreeListSpacePool::get_memory_usage() {
- size_t maxSize = (available_for_allocation() ? max_size() : 0);
- size_t used = used_in_bytes();
- size_t committed = _space->capacity();
-
- return MemoryUsage(initial_size(), used, committed, maxSize);
- }
- #endif // INCLUDE_ALL_GCS
-
GenerationPool::GenerationPool(Generation* gen,
const char* name,
PoolType type,
bool support_usage_threshold) :
CollectedMemoryPool(name, type, gen->capacity(), gen->max_capacity(),
--- 223,232 ----
< prev index next >