--- a/hotspot/src/share/vm/services/memoryManager.hpp Wed Mar 20 12:27:03 2013 -0700
+++ b/hotspot/src/share/vm/services/memoryManager.hpp Fri Mar 22 16:10:01 2013 +0100
@@ -56,6 +56,7 @@
enum Name {
Abstract,
CodeCache,
+ Metaspace,
Copy,
MarkSweepCompact,
ParNew,
@@ -88,6 +89,7 @@
// Static factory methods to get a memory manager of a specific type
static MemoryManager* get_code_cache_memory_manager();
+ static MemoryManager* get_metaspace_memory_manager();
static GCMemoryManager* get_copy_memory_manager();
static GCMemoryManager* get_msc_memory_manager();
static GCMemoryManager* get_parnew_memory_manager();
@@ -108,6 +110,14 @@
const char* name() { return "CodeCacheManager"; }
};
+class MetaspaceMemoryManager : public MemoryManager {
+public:
+ MetaspaceMemoryManager() : MemoryManager() {}
+
+ MemoryManager::Name kind() { return MemoryManager::Metaspace; }
+ const char *name() { return "MetaspaceManager"; }
+};
+
class GCStatInfo : public ResourceObj {
private:
size_t _index;