Mercurial > hg > graal-jvmci-8
comparison src/share/vm/services/memoryService.hpp @ 8825:dbd5837b342f
8000754: NPG: Implement a MemoryPool MXBean for Metaspace
Reviewed-by: jmasa, stefank
author | ehelin |
---|---|
date | Fri, 22 Mar 2013 16:10:01 +0100 |
parents | da91efe96a93 |
children | 42e370795a39 |
comparison
equal
deleted
inserted
replaced
8824:7f16d1812865 | 8825:dbd5837b342f |
---|---|
70 static GCMemoryManager* _major_gc_manager; | 70 static GCMemoryManager* _major_gc_manager; |
71 static GCMemoryManager* _minor_gc_manager; | 71 static GCMemoryManager* _minor_gc_manager; |
72 | 72 |
73 // Code heap memory pool | 73 // Code heap memory pool |
74 static MemoryPool* _code_heap_pool; | 74 static MemoryPool* _code_heap_pool; |
75 | |
76 // Metaspace pools | |
77 static MemoryPool* _metaspace_pool; | |
78 static MemoryPool* _class_metaspace_pool; | |
75 | 79 |
76 static void add_generation_memory_pool(Generation* gen, | 80 static void add_generation_memory_pool(Generation* gen, |
77 MemoryManager* major_mgr, | 81 MemoryManager* major_mgr, |
78 MemoryManager* minor_mgr); | 82 MemoryManager* minor_mgr); |
79 static void add_generation_memory_pool(Generation* gen, | 83 static void add_generation_memory_pool(Generation* gen, |
119 static void add_g1_heap_info(G1CollectedHeap* g1h); | 123 static void add_g1_heap_info(G1CollectedHeap* g1h); |
120 | 124 |
121 public: | 125 public: |
122 static void set_universe_heap(CollectedHeap* heap); | 126 static void set_universe_heap(CollectedHeap* heap); |
123 static void add_code_heap_memory_pool(CodeHeap* heap); | 127 static void add_code_heap_memory_pool(CodeHeap* heap); |
128 static void add_metaspace_memory_pools(); | |
124 | 129 |
125 static MemoryPool* get_memory_pool(instanceHandle pool); | 130 static MemoryPool* get_memory_pool(instanceHandle pool); |
126 static MemoryManager* get_memory_manager(instanceHandle mgr); | 131 static MemoryManager* get_memory_manager(instanceHandle mgr); |
127 | 132 |
128 static const int num_memory_pools() { | 133 static const int num_memory_pools() { |