annotate src/share/vm/services/memoryService.hpp @ 17467:55fb97c4c58d hs25-b65

8029233: Update copyright year to match last edit in jdk8 hotspot repository for 2013 Summary: Copyright year updated for files modified during 2013 Reviewed-by: twisti, iveresov
author mikael
date Tue, 24 Dec 2013 11:48:39 -0800
parents a6414751d537
children 4ca6dc0799b6
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
a61af66fc99e Initial load
duke
parents:
diff changeset
1 /*
17467
55fb97c4c58d 8029233: Update copyright year to match last edit in jdk8 hotspot repository for 2013
mikael
parents: 12839
diff changeset
2 * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
0
a61af66fc99e Initial load
duke
parents:
diff changeset
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
a61af66fc99e Initial load
duke
parents:
diff changeset
4 *
a61af66fc99e Initial load
duke
parents:
diff changeset
5 * This code is free software; you can redistribute it and/or modify it
a61af66fc99e Initial load
duke
parents:
diff changeset
6 * under the terms of the GNU General Public License version 2 only, as
a61af66fc99e Initial load
duke
parents:
diff changeset
7 * published by the Free Software Foundation.
a61af66fc99e Initial load
duke
parents:
diff changeset
8 *
a61af66fc99e Initial load
duke
parents:
diff changeset
9 * This code is distributed in the hope that it will be useful, but WITHOUT
a61af66fc99e Initial load
duke
parents:
diff changeset
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
a61af66fc99e Initial load
duke
parents:
diff changeset
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
a61af66fc99e Initial load
duke
parents:
diff changeset
12 * version 2 for more details (a copy is included in the LICENSE file that
a61af66fc99e Initial load
duke
parents:
diff changeset
13 * accompanied this code).
a61af66fc99e Initial load
duke
parents:
diff changeset
14 *
a61af66fc99e Initial load
duke
parents:
diff changeset
15 * You should have received a copy of the GNU General Public License version
a61af66fc99e Initial load
duke
parents:
diff changeset
16 * 2 along with this work; if not, write to the Free Software Foundation,
a61af66fc99e Initial load
duke
parents:
diff changeset
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
a61af66fc99e Initial load
duke
parents:
diff changeset
18 *
1552
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 1089
diff changeset
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 1089
diff changeset
20 * or visit www.oracle.com if you need additional information or have any
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 1089
diff changeset
21 * questions.
0
a61af66fc99e Initial load
duke
parents:
diff changeset
22 *
a61af66fc99e Initial load
duke
parents:
diff changeset
23 */
a61af66fc99e Initial load
duke
parents:
diff changeset
24
1972
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1703
diff changeset
25 #ifndef SHARE_VM_SERVICES_MEMORYSERVICE_HPP
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1703
diff changeset
26 #define SHARE_VM_SERVICES_MEMORYSERVICE_HPP
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1703
diff changeset
27
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1703
diff changeset
28 #include "memory/allocation.hpp"
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1703
diff changeset
29 #include "memory/generation.hpp"
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1703
diff changeset
30 #include "runtime/handles.hpp"
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1703
diff changeset
31 #include "services/memoryUsage.hpp"
3356
78542e2b5e35 7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents: 1972
diff changeset
32 #include "gc_interface/gcCause.hpp"
1972
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1703
diff changeset
33
0
a61af66fc99e Initial load
duke
parents:
diff changeset
34 // Forward declaration
a61af66fc99e Initial load
duke
parents:
diff changeset
35 class MemoryPool;
a61af66fc99e Initial load
duke
parents:
diff changeset
36 class MemoryManager;
a61af66fc99e Initial load
duke
parents:
diff changeset
37 class GCMemoryManager;
a61af66fc99e Initial load
duke
parents:
diff changeset
38 class CollectedHeap;
a61af66fc99e Initial load
duke
parents:
diff changeset
39 class Generation;
a61af66fc99e Initial load
duke
parents:
diff changeset
40 class DefNewGeneration;
a61af66fc99e Initial load
duke
parents:
diff changeset
41 class PSYoungGen;
a61af66fc99e Initial load
duke
parents:
diff changeset
42 class PSOldGen;
a61af66fc99e Initial load
duke
parents:
diff changeset
43 class CodeHeap;
a61af66fc99e Initial load
duke
parents:
diff changeset
44 class ContiguousSpace;
a61af66fc99e Initial load
duke
parents:
diff changeset
45 class CompactibleFreeListSpace;
a61af66fc99e Initial load
duke
parents:
diff changeset
46 class GenCollectedHeap;
a61af66fc99e Initial load
duke
parents:
diff changeset
47 class ParallelScavengeHeap;
1089
db0d5eba9d20 6815790: G1: Missing MemoryPoolMXBeans with -XX:+UseG1GC
tonyp
parents: 0
diff changeset
48 class G1CollectedHeap;
0
a61af66fc99e Initial load
duke
parents:
diff changeset
49
a61af66fc99e Initial load
duke
parents:
diff changeset
50 // VM Monitoring and Management Support
a61af66fc99e Initial load
duke
parents:
diff changeset
51
a61af66fc99e Initial load
duke
parents:
diff changeset
52 class MemoryService : public AllStatic {
a61af66fc99e Initial load
duke
parents:
diff changeset
53 private:
a61af66fc99e Initial load
duke
parents:
diff changeset
54 enum {
a61af66fc99e Initial load
duke
parents:
diff changeset
55 init_pools_list_size = 10,
a61af66fc99e Initial load
duke
parents:
diff changeset
56 init_managers_list_size = 5
a61af66fc99e Initial load
duke
parents:
diff changeset
57 };
a61af66fc99e Initial load
duke
parents:
diff changeset
58
a61af66fc99e Initial load
duke
parents:
diff changeset
59 // index for minor and major generations
a61af66fc99e Initial load
duke
parents:
diff changeset
60 enum {
a61af66fc99e Initial load
duke
parents:
diff changeset
61 minor = 0,
a61af66fc99e Initial load
duke
parents:
diff changeset
62 major = 1,
a61af66fc99e Initial load
duke
parents:
diff changeset
63 n_gens = 2
a61af66fc99e Initial load
duke
parents:
diff changeset
64 };
a61af66fc99e Initial load
duke
parents:
diff changeset
65
a61af66fc99e Initial load
duke
parents:
diff changeset
66 static GrowableArray<MemoryPool*>* _pools_list;
a61af66fc99e Initial load
duke
parents:
diff changeset
67 static GrowableArray<MemoryManager*>* _managers_list;
a61af66fc99e Initial load
duke
parents:
diff changeset
68
a61af66fc99e Initial load
duke
parents:
diff changeset
69 // memory managers for minor and major GC statistics
a61af66fc99e Initial load
duke
parents:
diff changeset
70 static GCMemoryManager* _major_gc_manager;
a61af66fc99e Initial load
duke
parents:
diff changeset
71 static GCMemoryManager* _minor_gc_manager;
a61af66fc99e Initial load
duke
parents:
diff changeset
72
a61af66fc99e Initial load
duke
parents:
diff changeset
73 // Code heap memory pool
a61af66fc99e Initial load
duke
parents:
diff changeset
74 static MemoryPool* _code_heap_pool;
a61af66fc99e Initial load
duke
parents:
diff changeset
75
11039
71963b3f802a 8013590: NPG: Add a memory pool MXBean for Metaspace
ehelin
parents: 8827
diff changeset
76 static MemoryPool* _metaspace_pool;
71963b3f802a 8013590: NPG: Add a memory pool MXBean for Metaspace
ehelin
parents: 8827
diff changeset
77 static MemoryPool* _compressed_class_pool;
71963b3f802a 8013590: NPG: Add a memory pool MXBean for Metaspace
ehelin
parents: 8827
diff changeset
78
0
a61af66fc99e Initial load
duke
parents:
diff changeset
79 static void add_generation_memory_pool(Generation* gen,
a61af66fc99e Initial load
duke
parents:
diff changeset
80 MemoryManager* major_mgr,
a61af66fc99e Initial load
duke
parents:
diff changeset
81 MemoryManager* minor_mgr);
a61af66fc99e Initial load
duke
parents:
diff changeset
82 static void add_generation_memory_pool(Generation* gen,
a61af66fc99e Initial load
duke
parents:
diff changeset
83 MemoryManager* major_mgr) {
a61af66fc99e Initial load
duke
parents:
diff changeset
84 add_generation_memory_pool(gen, major_mgr, NULL);
a61af66fc99e Initial load
duke
parents:
diff changeset
85 }
a61af66fc99e Initial load
duke
parents:
diff changeset
86
a61af66fc99e Initial load
duke
parents:
diff changeset
87
a61af66fc99e Initial load
duke
parents:
diff changeset
88 static void add_psYoung_memory_pool(PSYoungGen* gen,
a61af66fc99e Initial load
duke
parents:
diff changeset
89 MemoryManager* major_mgr,
a61af66fc99e Initial load
duke
parents:
diff changeset
90 MemoryManager* minor_mgr);
a61af66fc99e Initial load
duke
parents:
diff changeset
91 static void add_psOld_memory_pool(PSOldGen* gen,
a61af66fc99e Initial load
duke
parents:
diff changeset
92 MemoryManager* mgr);
a61af66fc99e Initial load
duke
parents:
diff changeset
93
1089
db0d5eba9d20 6815790: G1: Missing MemoryPoolMXBeans with -XX:+UseG1GC
tonyp
parents: 0
diff changeset
94 static void add_g1YoungGen_memory_pool(G1CollectedHeap* g1h,
db0d5eba9d20 6815790: G1: Missing MemoryPoolMXBeans with -XX:+UseG1GC
tonyp
parents: 0
diff changeset
95 MemoryManager* major_mgr,
db0d5eba9d20 6815790: G1: Missing MemoryPoolMXBeans with -XX:+UseG1GC
tonyp
parents: 0
diff changeset
96 MemoryManager* minor_mgr);
db0d5eba9d20 6815790: G1: Missing MemoryPoolMXBeans with -XX:+UseG1GC
tonyp
parents: 0
diff changeset
97 static void add_g1OldGen_memory_pool(G1CollectedHeap* g1h,
db0d5eba9d20 6815790: G1: Missing MemoryPoolMXBeans with -XX:+UseG1GC
tonyp
parents: 0
diff changeset
98 MemoryManager* mgr);
0
a61af66fc99e Initial load
duke
parents:
diff changeset
99
a61af66fc99e Initial load
duke
parents:
diff changeset
100 static MemoryPool* add_space(ContiguousSpace* space,
a61af66fc99e Initial load
duke
parents:
diff changeset
101 const char* name,
a61af66fc99e Initial load
duke
parents:
diff changeset
102 bool is_heap,
a61af66fc99e Initial load
duke
parents:
diff changeset
103 size_t max_size,
a61af66fc99e Initial load
duke
parents:
diff changeset
104 bool support_usage_threshold);
a61af66fc99e Initial load
duke
parents:
diff changeset
105 static MemoryPool* add_survivor_spaces(DefNewGeneration* gen,
a61af66fc99e Initial load
duke
parents:
diff changeset
106 const char* name,
a61af66fc99e Initial load
duke
parents:
diff changeset
107 bool is_heap,
a61af66fc99e Initial load
duke
parents:
diff changeset
108 size_t max_size,
a61af66fc99e Initial load
duke
parents:
diff changeset
109 bool support_usage_threshold);
a61af66fc99e Initial load
duke
parents:
diff changeset
110 static MemoryPool* add_gen(Generation* gen,
a61af66fc99e Initial load
duke
parents:
diff changeset
111 const char* name,
a61af66fc99e Initial load
duke
parents:
diff changeset
112 bool is_heap,
a61af66fc99e Initial load
duke
parents:
diff changeset
113 bool support_usage_threshold);
a61af66fc99e Initial load
duke
parents:
diff changeset
114 static MemoryPool* add_cms_space(CompactibleFreeListSpace* space,
a61af66fc99e Initial load
duke
parents:
diff changeset
115 const char* name,
a61af66fc99e Initial load
duke
parents:
diff changeset
116 bool is_heap,
a61af66fc99e Initial load
duke
parents:
diff changeset
117 size_t max_size,
a61af66fc99e Initial load
duke
parents:
diff changeset
118 bool support_usage_threshold);
a61af66fc99e Initial load
duke
parents:
diff changeset
119
a61af66fc99e Initial load
duke
parents:
diff changeset
120 static void add_gen_collected_heap_info(GenCollectedHeap* heap);
a61af66fc99e Initial load
duke
parents:
diff changeset
121 static void add_parallel_scavenge_heap_info(ParallelScavengeHeap* heap);
1089
db0d5eba9d20 6815790: G1: Missing MemoryPoolMXBeans with -XX:+UseG1GC
tonyp
parents: 0
diff changeset
122 static void add_g1_heap_info(G1CollectedHeap* g1h);
0
a61af66fc99e Initial load
duke
parents:
diff changeset
123
a61af66fc99e Initial load
duke
parents:
diff changeset
124 public:
a61af66fc99e Initial load
duke
parents:
diff changeset
125 static void set_universe_heap(CollectedHeap* heap);
a61af66fc99e Initial load
duke
parents:
diff changeset
126 static void add_code_heap_memory_pool(CodeHeap* heap);
11039
71963b3f802a 8013590: NPG: Add a memory pool MXBean for Metaspace
ehelin
parents: 8827
diff changeset
127 static void add_metaspace_memory_pools();
0
a61af66fc99e Initial load
duke
parents:
diff changeset
128
a61af66fc99e Initial load
duke
parents:
diff changeset
129 static MemoryPool* get_memory_pool(instanceHandle pool);
a61af66fc99e Initial load
duke
parents:
diff changeset
130 static MemoryManager* get_memory_manager(instanceHandle mgr);
a61af66fc99e Initial load
duke
parents:
diff changeset
131
a61af66fc99e Initial load
duke
parents:
diff changeset
132 static const int num_memory_pools() {
a61af66fc99e Initial load
duke
parents:
diff changeset
133 return _pools_list->length();
a61af66fc99e Initial load
duke
parents:
diff changeset
134 }
a61af66fc99e Initial load
duke
parents:
diff changeset
135 static const int num_memory_managers() {
a61af66fc99e Initial load
duke
parents:
diff changeset
136 return _managers_list->length();
a61af66fc99e Initial load
duke
parents:
diff changeset
137 }
a61af66fc99e Initial load
duke
parents:
diff changeset
138
a61af66fc99e Initial load
duke
parents:
diff changeset
139 static MemoryPool* get_memory_pool(int index) {
a61af66fc99e Initial load
duke
parents:
diff changeset
140 return _pools_list->at(index);
a61af66fc99e Initial load
duke
parents:
diff changeset
141 }
a61af66fc99e Initial load
duke
parents:
diff changeset
142
a61af66fc99e Initial load
duke
parents:
diff changeset
143 static MemoryManager* get_memory_manager(int index) {
a61af66fc99e Initial load
duke
parents:
diff changeset
144 return _managers_list->at(index);
a61af66fc99e Initial load
duke
parents:
diff changeset
145 }
a61af66fc99e Initial load
duke
parents:
diff changeset
146
a61af66fc99e Initial load
duke
parents:
diff changeset
147 static void track_memory_usage();
a61af66fc99e Initial load
duke
parents:
diff changeset
148 static void track_code_cache_memory_usage() {
a61af66fc99e Initial load
duke
parents:
diff changeset
149 track_memory_pool_usage(_code_heap_pool);
a61af66fc99e Initial load
duke
parents:
diff changeset
150 }
12839
a6414751d537 8025996: Track metaspace usage when metaspace is expanded
stefank
parents: 11039
diff changeset
151 static void track_metaspace_memory_usage() {
a6414751d537 8025996: Track metaspace usage when metaspace is expanded
stefank
parents: 11039
diff changeset
152 track_memory_pool_usage(_metaspace_pool);
a6414751d537 8025996: Track metaspace usage when metaspace is expanded
stefank
parents: 11039
diff changeset
153 }
a6414751d537 8025996: Track metaspace usage when metaspace is expanded
stefank
parents: 11039
diff changeset
154 static void track_compressed_class_memory_usage() {
a6414751d537 8025996: Track metaspace usage when metaspace is expanded
stefank
parents: 11039
diff changeset
155 track_memory_pool_usage(_compressed_class_pool);
a6414751d537 8025996: Track metaspace usage when metaspace is expanded
stefank
parents: 11039
diff changeset
156 }
0
a61af66fc99e Initial load
duke
parents:
diff changeset
157 static void track_memory_pool_usage(MemoryPool* pool);
a61af66fc99e Initial load
duke
parents:
diff changeset
158
1703
f6f3eef8a521 6581734: CMS Old Gen's collection usage is zero after GC which is incorrect
kevinw
parents: 1552
diff changeset
159 static void gc_begin(bool fullGC, bool recordGCBeginTime,
f6f3eef8a521 6581734: CMS Old Gen's collection usage is zero after GC which is incorrect
kevinw
parents: 1552
diff changeset
160 bool recordAccumulatedGCTime,
f6f3eef8a521 6581734: CMS Old Gen's collection usage is zero after GC which is incorrect
kevinw
parents: 1552
diff changeset
161 bool recordPreGCUsage, bool recordPeakUsage);
f6f3eef8a521 6581734: CMS Old Gen's collection usage is zero after GC which is incorrect
kevinw
parents: 1552
diff changeset
162 static void gc_end(bool fullGC, bool recordPostGCUsage,
f6f3eef8a521 6581734: CMS Old Gen's collection usage is zero after GC which is incorrect
kevinw
parents: 1552
diff changeset
163 bool recordAccumulatedGCTime,
3356
78542e2b5e35 7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents: 1972
diff changeset
164 bool recordGCEndTime, bool countCollection,
78542e2b5e35 7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents: 1972
diff changeset
165 GCCause::Cause cause);
1703
f6f3eef8a521 6581734: CMS Old Gen's collection usage is zero after GC which is incorrect
kevinw
parents: 1552
diff changeset
166
0
a61af66fc99e Initial load
duke
parents:
diff changeset
167
a61af66fc99e Initial load
duke
parents:
diff changeset
168 static void oops_do(OopClosure* f);
a61af66fc99e Initial load
duke
parents:
diff changeset
169
a61af66fc99e Initial load
duke
parents:
diff changeset
170 static bool get_verbose() { return PrintGC; }
a61af66fc99e Initial load
duke
parents:
diff changeset
171 static bool set_verbose(bool verbose);
a61af66fc99e Initial load
duke
parents:
diff changeset
172
a61af66fc99e Initial load
duke
parents:
diff changeset
173 // Create an instance of java/lang/management/MemoryUsage
a61af66fc99e Initial load
duke
parents:
diff changeset
174 static Handle create_MemoryUsage_obj(MemoryUsage usage, TRAPS);
3356
78542e2b5e35 7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents: 1972
diff changeset
175
78542e2b5e35 7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents: 1972
diff changeset
176 static const GCMemoryManager* get_minor_gc_manager() {
78542e2b5e35 7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents: 1972
diff changeset
177 return _minor_gc_manager;
78542e2b5e35 7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents: 1972
diff changeset
178 }
78542e2b5e35 7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents: 1972
diff changeset
179
78542e2b5e35 7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents: 1972
diff changeset
180 static const GCMemoryManager* get_major_gc_manager() {
78542e2b5e35 7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents: 1972
diff changeset
181 return _major_gc_manager;
78542e2b5e35 7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents: 1972
diff changeset
182 }
0
a61af66fc99e Initial load
duke
parents:
diff changeset
183 };
a61af66fc99e Initial load
duke
parents:
diff changeset
184
a61af66fc99e Initial load
duke
parents:
diff changeset
185 class TraceMemoryManagerStats : public StackObj {
a61af66fc99e Initial load
duke
parents:
diff changeset
186 private:
a61af66fc99e Initial load
duke
parents:
diff changeset
187 bool _fullGC;
1703
f6f3eef8a521 6581734: CMS Old Gen's collection usage is zero after GC which is incorrect
kevinw
parents: 1552
diff changeset
188 bool _recordGCBeginTime;
f6f3eef8a521 6581734: CMS Old Gen's collection usage is zero after GC which is incorrect
kevinw
parents: 1552
diff changeset
189 bool _recordPreGCUsage;
f6f3eef8a521 6581734: CMS Old Gen's collection usage is zero after GC which is incorrect
kevinw
parents: 1552
diff changeset
190 bool _recordPeakUsage;
f6f3eef8a521 6581734: CMS Old Gen's collection usage is zero after GC which is incorrect
kevinw
parents: 1552
diff changeset
191 bool _recordPostGCUsage;
f6f3eef8a521 6581734: CMS Old Gen's collection usage is zero after GC which is incorrect
kevinw
parents: 1552
diff changeset
192 bool _recordAccumulatedGCTime;
f6f3eef8a521 6581734: CMS Old Gen's collection usage is zero after GC which is incorrect
kevinw
parents: 1552
diff changeset
193 bool _recordGCEndTime;
f6f3eef8a521 6581734: CMS Old Gen's collection usage is zero after GC which is incorrect
kevinw
parents: 1552
diff changeset
194 bool _countCollection;
3356
78542e2b5e35 7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents: 1972
diff changeset
195 GCCause::Cause _cause;
0
a61af66fc99e Initial load
duke
parents:
diff changeset
196 public:
1703
f6f3eef8a521 6581734: CMS Old Gen's collection usage is zero after GC which is incorrect
kevinw
parents: 1552
diff changeset
197 TraceMemoryManagerStats() {}
f6f3eef8a521 6581734: CMS Old Gen's collection usage is zero after GC which is incorrect
kevinw
parents: 1552
diff changeset
198 TraceMemoryManagerStats(bool fullGC,
3356
78542e2b5e35 7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents: 1972
diff changeset
199 GCCause::Cause cause,
1703
f6f3eef8a521 6581734: CMS Old Gen's collection usage is zero after GC which is incorrect
kevinw
parents: 1552
diff changeset
200 bool recordGCBeginTime = true,
f6f3eef8a521 6581734: CMS Old Gen's collection usage is zero after GC which is incorrect
kevinw
parents: 1552
diff changeset
201 bool recordPreGCUsage = true,
f6f3eef8a521 6581734: CMS Old Gen's collection usage is zero after GC which is incorrect
kevinw
parents: 1552
diff changeset
202 bool recordPeakUsage = true,
f6f3eef8a521 6581734: CMS Old Gen's collection usage is zero after GC which is incorrect
kevinw
parents: 1552
diff changeset
203 bool recordPostGCUsage = true,
f6f3eef8a521 6581734: CMS Old Gen's collection usage is zero after GC which is incorrect
kevinw
parents: 1552
diff changeset
204 bool recordAccumulatedGCTime = true,
f6f3eef8a521 6581734: CMS Old Gen's collection usage is zero after GC which is incorrect
kevinw
parents: 1552
diff changeset
205 bool recordGCEndTime = true,
f6f3eef8a521 6581734: CMS Old Gen's collection usage is zero after GC which is incorrect
kevinw
parents: 1552
diff changeset
206 bool countCollection = true);
f6f3eef8a521 6581734: CMS Old Gen's collection usage is zero after GC which is incorrect
kevinw
parents: 1552
diff changeset
207
f6f3eef8a521 6581734: CMS Old Gen's collection usage is zero after GC which is incorrect
kevinw
parents: 1552
diff changeset
208 void initialize(bool fullGC,
3356
78542e2b5e35 7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents: 1972
diff changeset
209 GCCause::Cause cause,
1703
f6f3eef8a521 6581734: CMS Old Gen's collection usage is zero after GC which is incorrect
kevinw
parents: 1552
diff changeset
210 bool recordGCBeginTime,
f6f3eef8a521 6581734: CMS Old Gen's collection usage is zero after GC which is incorrect
kevinw
parents: 1552
diff changeset
211 bool recordPreGCUsage,
f6f3eef8a521 6581734: CMS Old Gen's collection usage is zero after GC which is incorrect
kevinw
parents: 1552
diff changeset
212 bool recordPeakUsage,
f6f3eef8a521 6581734: CMS Old Gen's collection usage is zero after GC which is incorrect
kevinw
parents: 1552
diff changeset
213 bool recordPostGCUsage,
f6f3eef8a521 6581734: CMS Old Gen's collection usage is zero after GC which is incorrect
kevinw
parents: 1552
diff changeset
214 bool recordAccumulatedGCTime,
f6f3eef8a521 6581734: CMS Old Gen's collection usage is zero after GC which is incorrect
kevinw
parents: 1552
diff changeset
215 bool recordGCEndTime,
f6f3eef8a521 6581734: CMS Old Gen's collection usage is zero after GC which is incorrect
kevinw
parents: 1552
diff changeset
216 bool countCollection);
f6f3eef8a521 6581734: CMS Old Gen's collection usage is zero after GC which is incorrect
kevinw
parents: 1552
diff changeset
217
3356
78542e2b5e35 7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents: 1972
diff changeset
218 TraceMemoryManagerStats(Generation::Name kind, GCCause::Cause cause);
0
a61af66fc99e Initial load
duke
parents:
diff changeset
219 ~TraceMemoryManagerStats();
a61af66fc99e Initial load
duke
parents:
diff changeset
220 };
1972
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1703
diff changeset
221
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1703
diff changeset
222 #endif // SHARE_VM_SERVICES_MEMORYSERVICE_HPP