--- a/src/hotspot/share/services/memoryPool.hpp Thu Nov 30 08:35:33 2017 -0800
+++ b/src/hotspot/share/services/memoryPool.hpp Thu Nov 30 13:40:07 2017 +0100
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2003, 2015, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2003, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -37,12 +37,8 @@
// both heap and non-heap memory.
// Forward declaration
-class CompactibleFreeListSpace;
-class ContiguousSpace;
class MemoryManager;
class SensorInfo;
-class Generation;
-class DefNewGeneration;
class ThresholdSupport;
class MemoryPool : public CHeapObj<mtInternal> {
@@ -144,67 +140,11 @@
class CollectedMemoryPool : public MemoryPool {
public:
- CollectedMemoryPool(const char* name, PoolType type, size_t init_size, size_t max_size, bool support_usage_threshold) :
- MemoryPool(name, type, init_size, max_size, support_usage_threshold, true) {};
+ CollectedMemoryPool(const char* name, size_t init_size, size_t max_size, bool support_usage_threshold) :
+ MemoryPool(name, MemoryPool::Heap, init_size, max_size, support_usage_threshold, true) {};
bool is_collected_pool() { return true; }
};
-class ContiguousSpacePool : public CollectedMemoryPool {
-private:
- ContiguousSpace* _space;
-
-public:
- ContiguousSpacePool(ContiguousSpace* space, const char* name, PoolType type, size_t max_size, bool support_usage_threshold);
-
- ContiguousSpace* space() { return _space; }
- MemoryUsage get_memory_usage();
- size_t used_in_bytes();
-};
-
-class SurvivorContiguousSpacePool : public CollectedMemoryPool {
-private:
- DefNewGeneration* _young_gen;
-
-public:
- SurvivorContiguousSpacePool(DefNewGeneration* young_gen,
- const char* name,
- PoolType type,
- size_t max_size,
- bool support_usage_threshold);
-
- MemoryUsage get_memory_usage();
-
- size_t used_in_bytes();
- size_t committed_in_bytes();
-};
-
-#if INCLUDE_ALL_GCS
-class CompactibleFreeListSpacePool : public CollectedMemoryPool {
-private:
- CompactibleFreeListSpace* _space;
-public:
- CompactibleFreeListSpacePool(CompactibleFreeListSpace* space,
- const char* name,
- PoolType type,
- size_t max_size,
- bool support_usage_threshold);
-
- MemoryUsage get_memory_usage();
- size_t used_in_bytes();
-};
-#endif // INCLUDE_ALL_GCS
-
-
-class GenerationPool : public CollectedMemoryPool {
-private:
- Generation* _gen;
-public:
- GenerationPool(Generation* gen, const char* name, PoolType type, bool support_usage_threshold);
-
- MemoryUsage get_memory_usage();
- size_t used_in_bytes();
-};
-
class CodeHeapPool: public MemoryPool {
private:
CodeHeap* _codeHeap;