mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 11:34:38 +02:00
8013590: NPG: Add a memory pool MXBean for Metaspace
Reviewed-by: jmasa, mgerdin
This commit is contained in:
parent
ca3a1be3fe
commit
604a75ff30
10 changed files with 222 additions and 21 deletions
|
@ -222,4 +222,21 @@ public:
|
|||
size_t used_in_bytes() { return _codeHeap->allocated_capacity(); }
|
||||
};
|
||||
|
||||
class MetaspacePool : public MemoryPool {
|
||||
size_t calculate_max_size() const;
|
||||
size_t capacity_in_bytes() const;
|
||||
public:
|
||||
MetaspacePool();
|
||||
MemoryUsage get_memory_usage();
|
||||
size_t used_in_bytes();
|
||||
};
|
||||
|
||||
class CompressedKlassSpacePool : public MemoryPool {
|
||||
size_t capacity_in_bytes() const;
|
||||
public:
|
||||
CompressedKlassSpacePool();
|
||||
MemoryUsage get_memory_usage();
|
||||
size_t used_in_bytes();
|
||||
};
|
||||
|
||||
#endif // SHARE_VM_SERVICES_MEMORYPOOL_HPP
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue