Mercurial > hg > truffle
comparison src/share/vm/services/memoryService.hpp @ 1089:db0d5eba9d20
6815790: G1: Missing MemoryPoolMXBeans with -XX:+UseG1GC
Summary: It introduces the necessary memory pools for G1.
Reviewed-by: mchung, ysr
author | tonyp |
---|---|
date | Fri, 20 Nov 2009 14:47:01 -0500 |
parents | a61af66fc99e |
children | c18cbe5936b8 |
comparison
equal
deleted
inserted
replaced
1088:3fc996d4edd2 | 1089:db0d5eba9d20 |
---|---|
38 class PermanentGenerationSpec; | 38 class PermanentGenerationSpec; |
39 class GenCollectedHeap; | 39 class GenCollectedHeap; |
40 class ParallelScavengeHeap; | 40 class ParallelScavengeHeap; |
41 class CompactingPermGenGen; | 41 class CompactingPermGenGen; |
42 class CMSPermGenGen; | 42 class CMSPermGenGen; |
43 class G1CollectedHeap; | |
43 | 44 |
44 // VM Monitoring and Management Support | 45 // VM Monitoring and Management Support |
45 | 46 |
46 class MemoryService : public AllStatic { | 47 class MemoryService : public AllStatic { |
47 private: | 48 private: |
86 static void add_psOld_memory_pool(PSOldGen* gen, | 87 static void add_psOld_memory_pool(PSOldGen* gen, |
87 MemoryManager* mgr); | 88 MemoryManager* mgr); |
88 static void add_psPerm_memory_pool(PSPermGen* perm, | 89 static void add_psPerm_memory_pool(PSPermGen* perm, |
89 MemoryManager* mgr); | 90 MemoryManager* mgr); |
90 | 91 |
92 static void add_g1YoungGen_memory_pool(G1CollectedHeap* g1h, | |
93 MemoryManager* major_mgr, | |
94 MemoryManager* minor_mgr); | |
95 static void add_g1OldGen_memory_pool(G1CollectedHeap* g1h, | |
96 MemoryManager* mgr); | |
97 static void add_g1PermGen_memory_pool(G1CollectedHeap* g1h, | |
98 MemoryManager* mgr); | |
91 | 99 |
92 static MemoryPool* add_space(ContiguousSpace* space, | 100 static MemoryPool* add_space(ContiguousSpace* space, |
93 const char* name, | 101 const char* name, |
94 bool is_heap, | 102 bool is_heap, |
95 size_t max_size, | 103 size_t max_size, |
109 size_t max_size, | 117 size_t max_size, |
110 bool support_usage_threshold); | 118 bool support_usage_threshold); |
111 | 119 |
112 static void add_gen_collected_heap_info(GenCollectedHeap* heap); | 120 static void add_gen_collected_heap_info(GenCollectedHeap* heap); |
113 static void add_parallel_scavenge_heap_info(ParallelScavengeHeap* heap); | 121 static void add_parallel_scavenge_heap_info(ParallelScavengeHeap* heap); |
122 static void add_g1_heap_info(G1CollectedHeap* g1h); | |
114 | 123 |
115 public: | 124 public: |
116 static void set_universe_heap(CollectedHeap* heap); | 125 static void set_universe_heap(CollectedHeap* heap); |
117 static void add_code_heap_memory_pool(CodeHeap* heap); | 126 static void add_code_heap_memory_pool(CodeHeap* heap); |
118 | 127 |