Mercurial > hg > truffle
comparison src/share/vm/services/memoryPool.hpp @ 11039:71963b3f802a
8013590: NPG: Add a memory pool MXBean for Metaspace
Reviewed-by: jmasa, mgerdin
author | ehelin |
---|---|
date | Wed, 26 Jun 2013 16:58:37 +0200 |
parents | 42e370795a39 |
children | 73d0d0218068 |
comparison
equal
deleted
inserted
replaced
11038:f99cd6e20ab1 | 11039:71963b3f802a |
---|---|
220 CodeHeapPool(CodeHeap* codeHeap, const char* name, bool support_usage_threshold); | 220 CodeHeapPool(CodeHeap* codeHeap, const char* name, bool support_usage_threshold); |
221 MemoryUsage get_memory_usage(); | 221 MemoryUsage get_memory_usage(); |
222 size_t used_in_bytes() { return _codeHeap->allocated_capacity(); } | 222 size_t used_in_bytes() { return _codeHeap->allocated_capacity(); } |
223 }; | 223 }; |
224 | 224 |
225 class MetaspacePool : public MemoryPool { | |
226 size_t calculate_max_size() const; | |
227 size_t capacity_in_bytes() const; | |
228 public: | |
229 MetaspacePool(); | |
230 MemoryUsage get_memory_usage(); | |
231 size_t used_in_bytes(); | |
232 }; | |
233 | |
234 class CompressedKlassSpacePool : public MemoryPool { | |
235 size_t capacity_in_bytes() const; | |
236 public: | |
237 CompressedKlassSpacePool(); | |
238 MemoryUsage get_memory_usage(); | |
239 size_t used_in_bytes(); | |
240 }; | |
241 | |
225 #endif // SHARE_VM_SERVICES_MEMORYPOOL_HPP | 242 #endif // SHARE_VM_SERVICES_MEMORYPOOL_HPP |