< prev index next >
src/share/vm/services/memoryPool.cpp
Print this page
rev 12854 : [mq]: gcinterface.patch
@@ -36,13 +36,10 @@
#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,
@@ -226,33 +223,10 @@
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(),
< prev index next >