annotate src/share/vm/gc_implementation/shared/gcAdaptivePolicyCounters.cpp @ 1941:79d04223b8a5

Added caching for resolved types and resolved fields. This is crucial, because the local load elimination will lead to wrong results, if field equality (of two RiField objects with the same object and the same RiType) is not given. The caching makes sure that the default equals implementation is sufficient.
author Thomas Wuerthinger <wuerthinger@ssw.jku.at>
date Tue, 28 Dec 2010 18:33:26 +0100
parents c18cbe5936b8
children f95d63e2154a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
a61af66fc99e Initial load
duke
parents:
diff changeset
1 /*
1552
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 0
diff changeset
2 * Copyright (c) 2004, 2005, 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: 0
diff changeset
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 0
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: 0
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
a61af66fc99e Initial load
duke
parents:
diff changeset
25 # include "incls/_precompiled.incl"
a61af66fc99e Initial load
duke
parents:
diff changeset
26 # include "incls/_gcAdaptivePolicyCounters.cpp.incl"
a61af66fc99e Initial load
duke
parents:
diff changeset
27
a61af66fc99e Initial load
duke
parents:
diff changeset
28 // This class keeps statistical information and computes the
a61af66fc99e Initial load
duke
parents:
diff changeset
29 // size of the heap.
a61af66fc99e Initial load
duke
parents:
diff changeset
30
a61af66fc99e Initial load
duke
parents:
diff changeset
31 GCAdaptivePolicyCounters::GCAdaptivePolicyCounters(const char* name,
a61af66fc99e Initial load
duke
parents:
diff changeset
32 int collectors,
a61af66fc99e Initial load
duke
parents:
diff changeset
33 int generations,
a61af66fc99e Initial load
duke
parents:
diff changeset
34 AdaptiveSizePolicy* size_policy_arg)
a61af66fc99e Initial load
duke
parents:
diff changeset
35 : GCPolicyCounters(name, collectors, generations),
a61af66fc99e Initial load
duke
parents:
diff changeset
36 _size_policy(size_policy_arg) {
a61af66fc99e Initial load
duke
parents:
diff changeset
37 if (UsePerfData) {
a61af66fc99e Initial load
duke
parents:
diff changeset
38 EXCEPTION_MARK;
a61af66fc99e Initial load
duke
parents:
diff changeset
39 ResourceMark rm;
a61af66fc99e Initial load
duke
parents:
diff changeset
40
a61af66fc99e Initial load
duke
parents:
diff changeset
41 const char* cname = PerfDataManager::counter_name(name_space(), "edenSize");
a61af66fc99e Initial load
duke
parents:
diff changeset
42 _eden_size_counter = PerfDataManager::create_variable(SUN_GC, cname,
a61af66fc99e Initial load
duke
parents:
diff changeset
43 PerfData::U_Bytes, _size_policy->calculated_eden_size_in_bytes(), CHECK);
a61af66fc99e Initial load
duke
parents:
diff changeset
44
a61af66fc99e Initial load
duke
parents:
diff changeset
45 cname = PerfDataManager::counter_name(name_space(), "promoSize");
a61af66fc99e Initial load
duke
parents:
diff changeset
46 _promo_size_counter = PerfDataManager::create_variable(SUN_GC, cname,
a61af66fc99e Initial load
duke
parents:
diff changeset
47 PerfData::U_Bytes, size_policy()->calculated_promo_size_in_bytes(),
a61af66fc99e Initial load
duke
parents:
diff changeset
48 CHECK);
a61af66fc99e Initial load
duke
parents:
diff changeset
49
a61af66fc99e Initial load
duke
parents:
diff changeset
50 cname = PerfDataManager::counter_name(name_space(), "youngCapacity");
a61af66fc99e Initial load
duke
parents:
diff changeset
51 size_t young_capacity_in_bytes =
a61af66fc99e Initial load
duke
parents:
diff changeset
52 _size_policy->calculated_eden_size_in_bytes() +
a61af66fc99e Initial load
duke
parents:
diff changeset
53 _size_policy->calculated_survivor_size_in_bytes();
a61af66fc99e Initial load
duke
parents:
diff changeset
54 _young_capacity_counter = PerfDataManager::create_variable(SUN_GC, cname,
a61af66fc99e Initial load
duke
parents:
diff changeset
55 PerfData::U_Bytes, young_capacity_in_bytes, CHECK);
a61af66fc99e Initial load
duke
parents:
diff changeset
56
a61af66fc99e Initial load
duke
parents:
diff changeset
57 cname = PerfDataManager::counter_name(name_space(), "avgSurvivedAvg");
a61af66fc99e Initial load
duke
parents:
diff changeset
58 _avg_survived_avg_counter = PerfDataManager::create_variable(SUN_GC, cname,
a61af66fc99e Initial load
duke
parents:
diff changeset
59 PerfData::U_Bytes, size_policy()->calculated_survivor_size_in_bytes(),
a61af66fc99e Initial load
duke
parents:
diff changeset
60 CHECK);
a61af66fc99e Initial load
duke
parents:
diff changeset
61
a61af66fc99e Initial load
duke
parents:
diff changeset
62 cname = PerfDataManager::counter_name(name_space(), "avgSurvivedDev");
a61af66fc99e Initial load
duke
parents:
diff changeset
63 _avg_survived_dev_counter = PerfDataManager::create_variable(SUN_GC, cname,
a61af66fc99e Initial load
duke
parents:
diff changeset
64 PerfData::U_Bytes, (jlong) 0 , CHECK);
a61af66fc99e Initial load
duke
parents:
diff changeset
65
a61af66fc99e Initial load
duke
parents:
diff changeset
66 cname = PerfDataManager::counter_name(name_space(), "avgSurvivedPaddedAvg");
a61af66fc99e Initial load
duke
parents:
diff changeset
67 _avg_survived_padded_avg_counter =
a61af66fc99e Initial load
duke
parents:
diff changeset
68 PerfDataManager::create_variable(SUN_GC, cname, PerfData::U_Bytes,
a61af66fc99e Initial load
duke
parents:
diff changeset
69 size_policy()->calculated_survivor_size_in_bytes(), CHECK);
a61af66fc99e Initial load
duke
parents:
diff changeset
70
a61af66fc99e Initial load
duke
parents:
diff changeset
71 cname = PerfDataManager::counter_name(name_space(), "avgMinorPauseTime");
a61af66fc99e Initial load
duke
parents:
diff changeset
72 _avg_minor_pause_counter = PerfDataManager::create_variable(SUN_GC, cname,
a61af66fc99e Initial load
duke
parents:
diff changeset
73 PerfData::U_Ticks, (jlong) _size_policy->_avg_minor_pause->average(),
a61af66fc99e Initial load
duke
parents:
diff changeset
74 CHECK);
a61af66fc99e Initial load
duke
parents:
diff changeset
75
a61af66fc99e Initial load
duke
parents:
diff changeset
76 cname = PerfDataManager::counter_name(name_space(), "avgMinorIntervalTime");
a61af66fc99e Initial load
duke
parents:
diff changeset
77 _avg_minor_interval_counter = PerfDataManager::create_variable(SUN_GC,
a61af66fc99e Initial load
duke
parents:
diff changeset
78 cname,
a61af66fc99e Initial load
duke
parents:
diff changeset
79 PerfData::U_Ticks,
a61af66fc99e Initial load
duke
parents:
diff changeset
80 (jlong) _size_policy->_avg_minor_interval->average(),
a61af66fc99e Initial load
duke
parents:
diff changeset
81 CHECK);
a61af66fc99e Initial load
duke
parents:
diff changeset
82
a61af66fc99e Initial load
duke
parents:
diff changeset
83 #ifdef NOT_PRODUCT
a61af66fc99e Initial load
duke
parents:
diff changeset
84 // This is a counter for the most recent minor pause time
a61af66fc99e Initial load
duke
parents:
diff changeset
85 // (the last sample, not the average). It is useful for
a61af66fc99e Initial load
duke
parents:
diff changeset
86 // verifying the average pause time but not worth putting
a61af66fc99e Initial load
duke
parents:
diff changeset
87 // into the product.
a61af66fc99e Initial load
duke
parents:
diff changeset
88 cname = PerfDataManager::counter_name(name_space(), "minorPauseTime");
a61af66fc99e Initial load
duke
parents:
diff changeset
89 _minor_pause_counter = PerfDataManager::create_variable(SUN_GC, cname,
a61af66fc99e Initial load
duke
parents:
diff changeset
90 PerfData::U_Ticks, (jlong) _size_policy->_avg_minor_pause->last_sample(),
a61af66fc99e Initial load
duke
parents:
diff changeset
91 CHECK);
a61af66fc99e Initial load
duke
parents:
diff changeset
92 #endif
a61af66fc99e Initial load
duke
parents:
diff changeset
93
a61af66fc99e Initial load
duke
parents:
diff changeset
94 cname = PerfDataManager::counter_name(name_space(), "minorGcCost");
a61af66fc99e Initial load
duke
parents:
diff changeset
95 _minor_gc_cost_counter = PerfDataManager::create_variable(SUN_GC,
a61af66fc99e Initial load
duke
parents:
diff changeset
96 cname,
a61af66fc99e Initial load
duke
parents:
diff changeset
97 PerfData::U_Ticks,
a61af66fc99e Initial load
duke
parents:
diff changeset
98 (jlong) _size_policy->minor_gc_cost(),
a61af66fc99e Initial load
duke
parents:
diff changeset
99 CHECK);
a61af66fc99e Initial load
duke
parents:
diff changeset
100
a61af66fc99e Initial load
duke
parents:
diff changeset
101 cname = PerfDataManager::counter_name(name_space(), "mutatorCost");
a61af66fc99e Initial load
duke
parents:
diff changeset
102 _mutator_cost_counter = PerfDataManager::create_variable(SUN_GC, cname,
a61af66fc99e Initial load
duke
parents:
diff changeset
103 PerfData::U_Ticks, (jlong) _size_policy->mutator_cost(), CHECK);
a61af66fc99e Initial load
duke
parents:
diff changeset
104
a61af66fc99e Initial load
duke
parents:
diff changeset
105 cname = PerfDataManager::counter_name(name_space(), "survived");
a61af66fc99e Initial load
duke
parents:
diff changeset
106 _survived_counter = PerfDataManager::create_variable(SUN_GC, cname,
a61af66fc99e Initial load
duke
parents:
diff changeset
107 PerfData::U_Bytes, (jlong) 0, CHECK);
a61af66fc99e Initial load
duke
parents:
diff changeset
108
a61af66fc99e Initial load
duke
parents:
diff changeset
109 cname = PerfDataManager::counter_name(name_space(), "promoted");
a61af66fc99e Initial load
duke
parents:
diff changeset
110 _promoted_counter = PerfDataManager::create_variable(SUN_GC, cname,
a61af66fc99e Initial load
duke
parents:
diff changeset
111 PerfData::U_Bytes, (jlong) 0, CHECK);
a61af66fc99e Initial load
duke
parents:
diff changeset
112
a61af66fc99e Initial load
duke
parents:
diff changeset
113 cname = PerfDataManager::counter_name(name_space(), "avgYoungLive");
a61af66fc99e Initial load
duke
parents:
diff changeset
114 _avg_young_live_counter = PerfDataManager::create_variable(SUN_GC, cname,
a61af66fc99e Initial load
duke
parents:
diff changeset
115 PerfData::U_Bytes, (jlong) size_policy()->avg_young_live()->average(),
a61af66fc99e Initial load
duke
parents:
diff changeset
116 CHECK);
a61af66fc99e Initial load
duke
parents:
diff changeset
117
a61af66fc99e Initial load
duke
parents:
diff changeset
118 cname = PerfDataManager::counter_name(name_space(), "avgOldLive");
a61af66fc99e Initial load
duke
parents:
diff changeset
119 _avg_old_live_counter = PerfDataManager::create_variable(SUN_GC, cname,
a61af66fc99e Initial load
duke
parents:
diff changeset
120 PerfData::U_Bytes, (jlong) size_policy()->avg_old_live()->average(),
a61af66fc99e Initial load
duke
parents:
diff changeset
121 CHECK);
a61af66fc99e Initial load
duke
parents:
diff changeset
122
a61af66fc99e Initial load
duke
parents:
diff changeset
123 cname = PerfDataManager::counter_name(name_space(), "survivorOverflowed");
a61af66fc99e Initial load
duke
parents:
diff changeset
124 _survivor_overflowed_counter = PerfDataManager::create_variable(SUN_GC, cname,
a61af66fc99e Initial load
duke
parents:
diff changeset
125 PerfData::U_Events, (jlong)0, CHECK);
a61af66fc99e Initial load
duke
parents:
diff changeset
126
a61af66fc99e Initial load
duke
parents:
diff changeset
127 cname = PerfDataManager::counter_name(name_space(),
a61af66fc99e Initial load
duke
parents:
diff changeset
128 "decrementTenuringThresholdForGcCost");
a61af66fc99e Initial load
duke
parents:
diff changeset
129 _decrement_tenuring_threshold_for_gc_cost_counter =
a61af66fc99e Initial load
duke
parents:
diff changeset
130 PerfDataManager::create_variable(SUN_GC, cname, PerfData::U_Events,
a61af66fc99e Initial load
duke
parents:
diff changeset
131 (jlong)0, CHECK);
a61af66fc99e Initial load
duke
parents:
diff changeset
132
a61af66fc99e Initial load
duke
parents:
diff changeset
133 cname = PerfDataManager::counter_name(name_space(),
a61af66fc99e Initial load
duke
parents:
diff changeset
134 "incrementTenuringThresholdForGcCost");
a61af66fc99e Initial load
duke
parents:
diff changeset
135 _increment_tenuring_threshold_for_gc_cost_counter =
a61af66fc99e Initial load
duke
parents:
diff changeset
136 PerfDataManager::create_variable(SUN_GC, cname, PerfData::U_Events,
a61af66fc99e Initial load
duke
parents:
diff changeset
137 (jlong)0, CHECK);
a61af66fc99e Initial load
duke
parents:
diff changeset
138
a61af66fc99e Initial load
duke
parents:
diff changeset
139 cname = PerfDataManager::counter_name(name_space(),
a61af66fc99e Initial load
duke
parents:
diff changeset
140 "decrementTenuringThresholdForSurvivorLimit");
a61af66fc99e Initial load
duke
parents:
diff changeset
141 _decrement_tenuring_threshold_for_survivor_limit_counter =
a61af66fc99e Initial load
duke
parents:
diff changeset
142 PerfDataManager::create_variable(SUN_GC, cname, PerfData::U_Events,
a61af66fc99e Initial load
duke
parents:
diff changeset
143 (jlong)0, CHECK);
a61af66fc99e Initial load
duke
parents:
diff changeset
144 cname = PerfDataManager::counter_name(name_space(),
a61af66fc99e Initial load
duke
parents:
diff changeset
145 "changeYoungGenForMinPauses");
a61af66fc99e Initial load
duke
parents:
diff changeset
146 _change_young_gen_for_min_pauses_counter =
a61af66fc99e Initial load
duke
parents:
diff changeset
147 PerfDataManager::create_variable(SUN_GC, cname, PerfData::U_Events,
a61af66fc99e Initial load
duke
parents:
diff changeset
148 (jlong)0, CHECK);
a61af66fc99e Initial load
duke
parents:
diff changeset
149
a61af66fc99e Initial load
duke
parents:
diff changeset
150 cname = PerfDataManager::counter_name(name_space(),
a61af66fc99e Initial load
duke
parents:
diff changeset
151 "changeOldGenForMajPauses");
a61af66fc99e Initial load
duke
parents:
diff changeset
152 _change_old_gen_for_maj_pauses_counter =
a61af66fc99e Initial load
duke
parents:
diff changeset
153 PerfDataManager::create_variable(SUN_GC, cname, PerfData::U_Events,
a61af66fc99e Initial load
duke
parents:
diff changeset
154 (jlong)0, CHECK);
a61af66fc99e Initial load
duke
parents:
diff changeset
155
a61af66fc99e Initial load
duke
parents:
diff changeset
156 cname = PerfDataManager::counter_name(name_space(),
a61af66fc99e Initial load
duke
parents:
diff changeset
157 "increaseOldGenForThroughput");
a61af66fc99e Initial load
duke
parents:
diff changeset
158 _change_old_gen_for_throughput_counter =
a61af66fc99e Initial load
duke
parents:
diff changeset
159 PerfDataManager::create_variable(SUN_GC, cname, PerfData::U_Events,
a61af66fc99e Initial load
duke
parents:
diff changeset
160 (jlong)0, CHECK);
a61af66fc99e Initial load
duke
parents:
diff changeset
161
a61af66fc99e Initial load
duke
parents:
diff changeset
162 cname = PerfDataManager::counter_name(name_space(),
a61af66fc99e Initial load
duke
parents:
diff changeset
163 "increaseYoungGenForThroughput");
a61af66fc99e Initial load
duke
parents:
diff changeset
164 _change_young_gen_for_throughput_counter =
a61af66fc99e Initial load
duke
parents:
diff changeset
165 PerfDataManager::create_variable(SUN_GC, cname, PerfData::U_Events,
a61af66fc99e Initial load
duke
parents:
diff changeset
166 (jlong)0, CHECK);
a61af66fc99e Initial load
duke
parents:
diff changeset
167
a61af66fc99e Initial load
duke
parents:
diff changeset
168 cname = PerfDataManager::counter_name(name_space(),
a61af66fc99e Initial load
duke
parents:
diff changeset
169 "decreaseForFootprint");
a61af66fc99e Initial load
duke
parents:
diff changeset
170 _decrease_for_footprint_counter =
a61af66fc99e Initial load
duke
parents:
diff changeset
171 PerfDataManager::create_variable(SUN_GC, cname,
a61af66fc99e Initial load
duke
parents:
diff changeset
172 PerfData::U_Events, (jlong)0, CHECK);
a61af66fc99e Initial load
duke
parents:
diff changeset
173
a61af66fc99e Initial load
duke
parents:
diff changeset
174 cname = PerfDataManager::counter_name(name_space(), "decideAtFullGc");
a61af66fc99e Initial load
duke
parents:
diff changeset
175 _decide_at_full_gc_counter = PerfDataManager::create_variable(SUN_GC, cname,
a61af66fc99e Initial load
duke
parents:
diff changeset
176 PerfData::U_None, (jlong)0, CHECK);
a61af66fc99e Initial load
duke
parents:
diff changeset
177
a61af66fc99e Initial load
duke
parents:
diff changeset
178 cname = PerfDataManager::counter_name(name_space(), "minorPauseYoungSlope");
a61af66fc99e Initial load
duke
parents:
diff changeset
179 _minor_pause_young_slope_counter =
a61af66fc99e Initial load
duke
parents:
diff changeset
180 PerfDataManager::create_variable(SUN_GC, cname,
a61af66fc99e Initial load
duke
parents:
diff changeset
181 PerfData::U_None, (jlong) 0, CHECK);
a61af66fc99e Initial load
duke
parents:
diff changeset
182
a61af66fc99e Initial load
duke
parents:
diff changeset
183 cname = PerfDataManager::counter_name(name_space(), "majorCollectionSlope");
a61af66fc99e Initial load
duke
parents:
diff changeset
184 _major_collection_slope_counter =
a61af66fc99e Initial load
duke
parents:
diff changeset
185 PerfDataManager::create_variable(SUN_GC, cname,
a61af66fc99e Initial load
duke
parents:
diff changeset
186 PerfData::U_None, (jlong) 0, CHECK);
a61af66fc99e Initial load
duke
parents:
diff changeset
187
a61af66fc99e Initial load
duke
parents:
diff changeset
188 cname = PerfDataManager::counter_name(name_space(), "minorCollectionSlope");
a61af66fc99e Initial load
duke
parents:
diff changeset
189 _minor_collection_slope_counter =
a61af66fc99e Initial load
duke
parents:
diff changeset
190 PerfDataManager::create_variable(SUN_GC, cname,
a61af66fc99e Initial load
duke
parents:
diff changeset
191 PerfData::U_None, (jlong) 0, CHECK);
a61af66fc99e Initial load
duke
parents:
diff changeset
192 }
a61af66fc99e Initial load
duke
parents:
diff changeset
193 }
a61af66fc99e Initial load
duke
parents:
diff changeset
194
a61af66fc99e Initial load
duke
parents:
diff changeset
195 void GCAdaptivePolicyCounters::update_counters_from_policy() {
a61af66fc99e Initial load
duke
parents:
diff changeset
196 if (UsePerfData && (size_policy() != NULL)) {
a61af66fc99e Initial load
duke
parents:
diff changeset
197 update_avg_minor_pause_counter();
a61af66fc99e Initial load
duke
parents:
diff changeset
198 update_avg_minor_interval_counter();
a61af66fc99e Initial load
duke
parents:
diff changeset
199 #ifdef NOT_PRODUCT
a61af66fc99e Initial load
duke
parents:
diff changeset
200 update_minor_pause_counter();
a61af66fc99e Initial load
duke
parents:
diff changeset
201 #endif
a61af66fc99e Initial load
duke
parents:
diff changeset
202 update_minor_gc_cost_counter();
a61af66fc99e Initial load
duke
parents:
diff changeset
203 update_avg_young_live_counter();
a61af66fc99e Initial load
duke
parents:
diff changeset
204
a61af66fc99e Initial load
duke
parents:
diff changeset
205 update_survivor_size_counters();
a61af66fc99e Initial load
duke
parents:
diff changeset
206 update_avg_survived_avg_counters();
a61af66fc99e Initial load
duke
parents:
diff changeset
207 update_avg_survived_dev_counters();
a61af66fc99e Initial load
duke
parents:
diff changeset
208 update_avg_survived_padded_avg_counters();
a61af66fc99e Initial load
duke
parents:
diff changeset
209
a61af66fc99e Initial load
duke
parents:
diff changeset
210 update_change_old_gen_for_throughput();
a61af66fc99e Initial load
duke
parents:
diff changeset
211 update_change_young_gen_for_throughput();
a61af66fc99e Initial load
duke
parents:
diff changeset
212 update_decrease_for_footprint();
a61af66fc99e Initial load
duke
parents:
diff changeset
213 update_change_young_gen_for_min_pauses();
a61af66fc99e Initial load
duke
parents:
diff changeset
214 update_change_old_gen_for_maj_pauses();
a61af66fc99e Initial load
duke
parents:
diff changeset
215
a61af66fc99e Initial load
duke
parents:
diff changeset
216 update_minor_pause_young_slope_counter();
a61af66fc99e Initial load
duke
parents:
diff changeset
217 update_minor_collection_slope_counter();
a61af66fc99e Initial load
duke
parents:
diff changeset
218 update_major_collection_slope_counter();
a61af66fc99e Initial load
duke
parents:
diff changeset
219 }
a61af66fc99e Initial load
duke
parents:
diff changeset
220 }
a61af66fc99e Initial load
duke
parents:
diff changeset
221
a61af66fc99e Initial load
duke
parents:
diff changeset
222 void GCAdaptivePolicyCounters::update_counters() {
a61af66fc99e Initial load
duke
parents:
diff changeset
223 if (UsePerfData) {
a61af66fc99e Initial load
duke
parents:
diff changeset
224 update_counters_from_policy();
a61af66fc99e Initial load
duke
parents:
diff changeset
225 }
a61af66fc99e Initial load
duke
parents:
diff changeset
226 }