153
154 const char* young_collection_name_space = _young_gen_counters->name_space();
155
156 // name "generation.0.space.0"
157 // See _old_space_counters for additional counters
158 _eden_space_counters = new HSpaceCounters(young_collection_name_space,
159 "eden", 0 /* ordinal */,
160 pad_capacity(g1h->max_capacity()) /* max_capacity */,
161 pad_capacity(_eden_space_committed) /* init_capacity */);
162
163 // name "generation.0.space.1"
164 // See _old_space_counters for additional counters
165 // Set the arguments to indicate that this survivor space is not used.
166 _from_space_counters = new HSpaceCounters(young_collection_name_space,
167 "s0", 1 /* ordinal */,
168 pad_capacity(0) /* max_capacity */,
169 pad_capacity(0) /* init_capacity */);
170 // Given that this survivor space is not used, we update it here
171 // once to reflect that its used space is 0 so that we don't have to
172 // worry about updating it again later.
173 _from_space_counters->update_used(0);
174
175 // name "generation.0.space.2"
176 // See _old_space_counters for additional counters
177 _to_space_counters = new HSpaceCounters(young_collection_name_space,
178 "s1", 2 /* ordinal */,
179 pad_capacity(g1h->max_capacity()) /* max_capacity */,
180 pad_capacity(_survivor_space_committed) /* init_capacity */);
181 }
182
183 G1MonitoringSupport::~G1MonitoringSupport() {
184 delete _eden_space_pool;
185 delete _survivor_space_pool;
186 delete _old_gen_pool;
187 }
188
189 void G1MonitoringSupport::initialize_serviceability() {
190 _eden_space_pool = new G1EdenPool(_g1h, _eden_space_committed);
191 _survivor_space_pool = new G1SurvivorPool(_g1h, _survivor_space_committed);
192 _old_gen_pool = new G1OldGenPool(_g1h, _old_gen_committed, _g1h->max_capacity());
193
|
153
154 const char* young_collection_name_space = _young_gen_counters->name_space();
155
156 // name "generation.0.space.0"
157 // See _old_space_counters for additional counters
158 _eden_space_counters = new HSpaceCounters(young_collection_name_space,
159 "eden", 0 /* ordinal */,
160 pad_capacity(g1h->max_capacity()) /* max_capacity */,
161 pad_capacity(_eden_space_committed) /* init_capacity */);
162
163 // name "generation.0.space.1"
164 // See _old_space_counters for additional counters
165 // Set the arguments to indicate that this survivor space is not used.
166 _from_space_counters = new HSpaceCounters(young_collection_name_space,
167 "s0", 1 /* ordinal */,
168 pad_capacity(0) /* max_capacity */,
169 pad_capacity(0) /* init_capacity */);
170 // Given that this survivor space is not used, we update it here
171 // once to reflect that its used space is 0 so that we don't have to
172 // worry about updating it again later.
173 if (UsePerfData) {
174 _from_space_counters->update_used(0);
175 }
176
177 // name "generation.0.space.2"
178 // See _old_space_counters for additional counters
179 _to_space_counters = new HSpaceCounters(young_collection_name_space,
180 "s1", 2 /* ordinal */,
181 pad_capacity(g1h->max_capacity()) /* max_capacity */,
182 pad_capacity(_survivor_space_committed) /* init_capacity */);
183 }
184
185 G1MonitoringSupport::~G1MonitoringSupport() {
186 delete _eden_space_pool;
187 delete _survivor_space_pool;
188 delete _old_gen_pool;
189 }
190
191 void G1MonitoringSupport::initialize_serviceability() {
192 _eden_space_pool = new G1EdenPool(_g1h, _eden_space_committed);
193 _survivor_space_pool = new G1SurvivorPool(_g1h, _survivor_space_committed);
194 _old_gen_pool = new G1OldGenPool(_g1h, _old_gen_committed, _g1h->max_capacity());
195
|