diff -r ad0621bda88a -r e1871d34a188 src/hotspot/share/gc/epsilon/epsilonMemoryPool.hpp --- a/src/hotspot/share/gc/epsilon/epsilonMemoryPool.hpp Thu Apr 26 18:16:16 2018 +0200 +++ b/src/hotspot/share/gc/epsilon/epsilonMemoryPool.hpp Thu Apr 26 18:46:01 2018 +0200 @@ -31,30 +31,15 @@ #include "services/memoryUsage.hpp" #endif // INCLUDE_ALL_GCS -class EpsilonDummyMemoryPool : public CollectedMemoryPool { -public: - EpsilonDummyMemoryPool(); - MemoryUsage get_memory_usage() { return MemoryUsage(0, 0, 0, 0); } - size_t used_in_bytes() { return 0; } - size_t max_size() const { return 0; } -}; - class EpsilonMemoryPool : public CollectedMemoryPool { private: EpsilonHeap* _heap; public: EpsilonMemoryPool(EpsilonHeap* heap); - - size_t committed_in_bytes() { - return _heap->capacity(); - } - size_t used_in_bytes() { - return _heap->used(); - } - size_t max_size() const { - return _heap->max_capacity(); - } + size_t committed_in_bytes() { return _heap->capacity(); } + size_t used_in_bytes() { return _heap->used(); } + size_t max_size() const { return _heap->max_capacity(); } MemoryUsage get_memory_usage(); };