annotate src/share/vm/gc_implementation/shared/gcAdaptivePolicyCounters.hpp @ 10374:87c64c0438fb

6976350: G1: deal with fragmentation while copying objects during GC Summary: Create G1ParGCAllocBufferContainer to contain two buffers instead of previously using one buffer, in order to hold the first priority buffer longer. Thus, when some large objects hits the value of free space left in the first priority buffer it has an alternative to fit in the second priority buffer while the first priority buffer is given more chances to try allocating smaller objects. Overall, it will improve heap space efficiency. Reviewed-by: johnc, jmasa, brutisso Contributed-by: tamao <tao.mao@oracle.com>
author tamao
date Mon, 03 Jun 2013 14:37:13 -0700
parents db9981fd3124
children de6a9e811145
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
a61af66fc99e Initial load
duke
parents:
diff changeset
1 /*
1972
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
2 * Copyright (c) 2004, 2010, 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
1972
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
25 #ifndef SHARE_VM_GC_IMPLEMENTATION_SHARED_GCADAPTIVEPOLICYCOUNTERS_HPP
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
26 #define SHARE_VM_GC_IMPLEMENTATION_SHARED_GCADAPTIVEPOLICYCOUNTERS_HPP
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
27
8001
db9981fd3124 8005915: Unify SERIALGC and INCLUDE_ALTERNATE_GCS
jprovino
parents: 6818
diff changeset
28 #include "utilities/macros.hpp"
db9981fd3124 8005915: Unify SERIALGC and INCLUDE_ALTERNATE_GCS
jprovino
parents: 6818
diff changeset
29 #if INCLUDE_ALL_GCS
1972
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
30 #include "gc_implementation/shared/adaptiveSizePolicy.hpp"
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
31 #include "gc_implementation/shared/gcPolicyCounters.hpp"
8001
db9981fd3124 8005915: Unify SERIALGC and INCLUDE_ALTERNATE_GCS
jprovino
parents: 6818
diff changeset
32 #endif // INCLUDE_ALL_GCS
1972
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
33
0
a61af66fc99e Initial load
duke
parents:
diff changeset
34 // This class keeps statistical information and computes the
a61af66fc99e Initial load
duke
parents:
diff changeset
35 // size of the heap.
a61af66fc99e Initial load
duke
parents:
diff changeset
36
a61af66fc99e Initial load
duke
parents:
diff changeset
37 class GCAdaptivePolicyCounters : public GCPolicyCounters {
a61af66fc99e Initial load
duke
parents:
diff changeset
38 protected:
a61af66fc99e Initial load
duke
parents:
diff changeset
39 PerfVariable* _eden_size_counter;
a61af66fc99e Initial load
duke
parents:
diff changeset
40 PerfVariable* _promo_size_counter;
a61af66fc99e Initial load
duke
parents:
diff changeset
41
a61af66fc99e Initial load
duke
parents:
diff changeset
42 PerfVariable* _young_capacity_counter;
a61af66fc99e Initial load
duke
parents:
diff changeset
43
a61af66fc99e Initial load
duke
parents:
diff changeset
44 PerfVariable* _minor_gc_cost_counter;
a61af66fc99e Initial load
duke
parents:
diff changeset
45 PerfVariable* _major_gc_cost_counter;
a61af66fc99e Initial load
duke
parents:
diff changeset
46 PerfVariable* _mutator_cost_counter;
a61af66fc99e Initial load
duke
parents:
diff changeset
47
a61af66fc99e Initial load
duke
parents:
diff changeset
48 PerfVariable* _avg_young_live_counter;
a61af66fc99e Initial load
duke
parents:
diff changeset
49 PerfVariable* _avg_old_live_counter;
a61af66fc99e Initial load
duke
parents:
diff changeset
50
a61af66fc99e Initial load
duke
parents:
diff changeset
51 PerfVariable* _avg_minor_pause_counter;
a61af66fc99e Initial load
duke
parents:
diff changeset
52 PerfVariable* _avg_minor_interval_counter;
a61af66fc99e Initial load
duke
parents:
diff changeset
53
a61af66fc99e Initial load
duke
parents:
diff changeset
54 #ifdef NOT_PRODUCT
a61af66fc99e Initial load
duke
parents:
diff changeset
55 PerfVariable* _minor_pause_counter;
a61af66fc99e Initial load
duke
parents:
diff changeset
56 #endif
a61af66fc99e Initial load
duke
parents:
diff changeset
57
a61af66fc99e Initial load
duke
parents:
diff changeset
58 PerfVariable* _change_young_gen_for_min_pauses_counter;
a61af66fc99e Initial load
duke
parents:
diff changeset
59 PerfVariable* _change_young_gen_for_throughput_counter;
a61af66fc99e Initial load
duke
parents:
diff changeset
60 PerfVariable* _change_old_gen_for_maj_pauses_counter;
a61af66fc99e Initial load
duke
parents:
diff changeset
61 PerfVariable* _change_old_gen_for_throughput_counter;
a61af66fc99e Initial load
duke
parents:
diff changeset
62 PerfVariable* _decrease_for_footprint_counter;
a61af66fc99e Initial load
duke
parents:
diff changeset
63
a61af66fc99e Initial load
duke
parents:
diff changeset
64 PerfVariable* _minor_pause_young_slope_counter;
a61af66fc99e Initial load
duke
parents:
diff changeset
65 PerfVariable* _major_pause_old_slope_counter;
a61af66fc99e Initial load
duke
parents:
diff changeset
66
a61af66fc99e Initial load
duke
parents:
diff changeset
67 PerfVariable* _decide_at_full_gc_counter;
a61af66fc99e Initial load
duke
parents:
diff changeset
68
a61af66fc99e Initial load
duke
parents:
diff changeset
69 PerfVariable* _survived_counter;
a61af66fc99e Initial load
duke
parents:
diff changeset
70 PerfVariable* _promoted_counter;
a61af66fc99e Initial load
duke
parents:
diff changeset
71
a61af66fc99e Initial load
duke
parents:
diff changeset
72 PerfVariable* _avg_survived_avg_counter;
a61af66fc99e Initial load
duke
parents:
diff changeset
73 PerfVariable* _avg_survived_dev_counter;
a61af66fc99e Initial load
duke
parents:
diff changeset
74 PerfVariable* _avg_survived_padded_avg_counter;
a61af66fc99e Initial load
duke
parents:
diff changeset
75
a61af66fc99e Initial load
duke
parents:
diff changeset
76 PerfVariable* _survivor_overflowed_counter;
a61af66fc99e Initial load
duke
parents:
diff changeset
77 PerfVariable* _increment_tenuring_threshold_for_gc_cost_counter;
a61af66fc99e Initial load
duke
parents:
diff changeset
78 PerfVariable* _decrement_tenuring_threshold_for_gc_cost_counter;
a61af66fc99e Initial load
duke
parents:
diff changeset
79 PerfVariable* _decrement_tenuring_threshold_for_survivor_limit_counter;
a61af66fc99e Initial load
duke
parents:
diff changeset
80
a61af66fc99e Initial load
duke
parents:
diff changeset
81 PerfVariable* _minor_collection_slope_counter;
a61af66fc99e Initial load
duke
parents:
diff changeset
82 PerfVariable* _major_collection_slope_counter;
a61af66fc99e Initial load
duke
parents:
diff changeset
83
a61af66fc99e Initial load
duke
parents:
diff changeset
84 AdaptiveSizePolicy* _size_policy;
a61af66fc99e Initial load
duke
parents:
diff changeset
85
a61af66fc99e Initial load
duke
parents:
diff changeset
86 inline void update_eden_size() {
a61af66fc99e Initial load
duke
parents:
diff changeset
87 size_t eden_size_in_bytes = size_policy()->calculated_eden_size_in_bytes();
a61af66fc99e Initial load
duke
parents:
diff changeset
88 _eden_size_counter->set_value(eden_size_in_bytes);
a61af66fc99e Initial load
duke
parents:
diff changeset
89 }
a61af66fc99e Initial load
duke
parents:
diff changeset
90
a61af66fc99e Initial load
duke
parents:
diff changeset
91 inline void update_promo_size() {
a61af66fc99e Initial load
duke
parents:
diff changeset
92 _promo_size_counter->set_value(
a61af66fc99e Initial load
duke
parents:
diff changeset
93 size_policy()->calculated_promo_size_in_bytes());
a61af66fc99e Initial load
duke
parents:
diff changeset
94 }
a61af66fc99e Initial load
duke
parents:
diff changeset
95
a61af66fc99e Initial load
duke
parents:
diff changeset
96 inline void update_avg_minor_pause_counter() {
a61af66fc99e Initial load
duke
parents:
diff changeset
97 _avg_minor_pause_counter->set_value((jlong)
a61af66fc99e Initial load
duke
parents:
diff changeset
98 (size_policy()->avg_minor_pause()->average() * 1000.0));
a61af66fc99e Initial load
duke
parents:
diff changeset
99 }
a61af66fc99e Initial load
duke
parents:
diff changeset
100 inline void update_avg_minor_interval_counter() {
a61af66fc99e Initial load
duke
parents:
diff changeset
101 _avg_minor_interval_counter->set_value((jlong)
a61af66fc99e Initial load
duke
parents:
diff changeset
102 (size_policy()->avg_minor_interval()->average() * 1000.0));
a61af66fc99e Initial load
duke
parents:
diff changeset
103 }
a61af66fc99e Initial load
duke
parents:
diff changeset
104
a61af66fc99e Initial load
duke
parents:
diff changeset
105 #ifdef NOT_PRODUCT
a61af66fc99e Initial load
duke
parents:
diff changeset
106 inline void update_minor_pause_counter() {
a61af66fc99e Initial load
duke
parents:
diff changeset
107 _minor_pause_counter->set_value((jlong)
a61af66fc99e Initial load
duke
parents:
diff changeset
108 (size_policy()->avg_minor_pause()->last_sample() * 1000.0));
a61af66fc99e Initial load
duke
parents:
diff changeset
109 }
a61af66fc99e Initial load
duke
parents:
diff changeset
110 #endif
a61af66fc99e Initial load
duke
parents:
diff changeset
111 inline void update_minor_gc_cost_counter() {
a61af66fc99e Initial load
duke
parents:
diff changeset
112 _minor_gc_cost_counter->set_value((jlong)
a61af66fc99e Initial load
duke
parents:
diff changeset
113 (size_policy()->minor_gc_cost() * 100.0));
a61af66fc99e Initial load
duke
parents:
diff changeset
114 }
a61af66fc99e Initial load
duke
parents:
diff changeset
115
a61af66fc99e Initial load
duke
parents:
diff changeset
116 inline void update_avg_young_live_counter() {
a61af66fc99e Initial load
duke
parents:
diff changeset
117 _avg_young_live_counter->set_value(
a61af66fc99e Initial load
duke
parents:
diff changeset
118 (jlong)(size_policy()->avg_young_live()->average())
a61af66fc99e Initial load
duke
parents:
diff changeset
119 );
a61af66fc99e Initial load
duke
parents:
diff changeset
120 }
a61af66fc99e Initial load
duke
parents:
diff changeset
121
a61af66fc99e Initial load
duke
parents:
diff changeset
122 inline void update_avg_survived_avg_counters() {
a61af66fc99e Initial load
duke
parents:
diff changeset
123 _avg_survived_avg_counter->set_value(
a61af66fc99e Initial load
duke
parents:
diff changeset
124 (jlong)(size_policy()->_avg_survived->average())
a61af66fc99e Initial load
duke
parents:
diff changeset
125 );
a61af66fc99e Initial load
duke
parents:
diff changeset
126 }
a61af66fc99e Initial load
duke
parents:
diff changeset
127 inline void update_avg_survived_dev_counters() {
a61af66fc99e Initial load
duke
parents:
diff changeset
128 _avg_survived_dev_counter->set_value(
a61af66fc99e Initial load
duke
parents:
diff changeset
129 (jlong)(size_policy()->_avg_survived->deviation())
a61af66fc99e Initial load
duke
parents:
diff changeset
130 );
a61af66fc99e Initial load
duke
parents:
diff changeset
131 }
a61af66fc99e Initial load
duke
parents:
diff changeset
132 inline void update_avg_survived_padded_avg_counters() {
a61af66fc99e Initial load
duke
parents:
diff changeset
133 _avg_survived_padded_avg_counter->set_value(
a61af66fc99e Initial load
duke
parents:
diff changeset
134 (jlong)(size_policy()->_avg_survived->padded_average())
a61af66fc99e Initial load
duke
parents:
diff changeset
135 );
a61af66fc99e Initial load
duke
parents:
diff changeset
136 }
a61af66fc99e Initial load
duke
parents:
diff changeset
137
a61af66fc99e Initial load
duke
parents:
diff changeset
138 inline void update_change_old_gen_for_throughput() {
a61af66fc99e Initial load
duke
parents:
diff changeset
139 _change_old_gen_for_throughput_counter->set_value(
a61af66fc99e Initial load
duke
parents:
diff changeset
140 size_policy()->change_old_gen_for_throughput());
a61af66fc99e Initial load
duke
parents:
diff changeset
141 }
a61af66fc99e Initial load
duke
parents:
diff changeset
142 inline void update_change_young_gen_for_throughput() {
a61af66fc99e Initial load
duke
parents:
diff changeset
143 _change_young_gen_for_throughput_counter->set_value(
a61af66fc99e Initial load
duke
parents:
diff changeset
144 size_policy()->change_young_gen_for_throughput());
a61af66fc99e Initial load
duke
parents:
diff changeset
145 }
a61af66fc99e Initial load
duke
parents:
diff changeset
146 inline void update_decrease_for_footprint() {
a61af66fc99e Initial load
duke
parents:
diff changeset
147 _decrease_for_footprint_counter->set_value(
a61af66fc99e Initial load
duke
parents:
diff changeset
148 size_policy()->decrease_for_footprint());
a61af66fc99e Initial load
duke
parents:
diff changeset
149 }
a61af66fc99e Initial load
duke
parents:
diff changeset
150
a61af66fc99e Initial load
duke
parents:
diff changeset
151 inline void update_decide_at_full_gc_counter() {
a61af66fc99e Initial load
duke
parents:
diff changeset
152 _decide_at_full_gc_counter->set_value(
a61af66fc99e Initial load
duke
parents:
diff changeset
153 size_policy()->decide_at_full_gc());
a61af66fc99e Initial load
duke
parents:
diff changeset
154 }
a61af66fc99e Initial load
duke
parents:
diff changeset
155
a61af66fc99e Initial load
duke
parents:
diff changeset
156 inline void update_minor_pause_young_slope_counter() {
a61af66fc99e Initial load
duke
parents:
diff changeset
157 _minor_pause_young_slope_counter->set_value(
a61af66fc99e Initial load
duke
parents:
diff changeset
158 (jlong)(size_policy()->minor_pause_young_slope() * 1000)
a61af66fc99e Initial load
duke
parents:
diff changeset
159 );
a61af66fc99e Initial load
duke
parents:
diff changeset
160 }
a61af66fc99e Initial load
duke
parents:
diff changeset
161
a61af66fc99e Initial load
duke
parents:
diff changeset
162 virtual void update_counters_from_policy();
a61af66fc99e Initial load
duke
parents:
diff changeset
163
a61af66fc99e Initial load
duke
parents:
diff changeset
164 protected:
a61af66fc99e Initial load
duke
parents:
diff changeset
165 virtual AdaptiveSizePolicy* size_policy() { return _size_policy; }
a61af66fc99e Initial load
duke
parents:
diff changeset
166
a61af66fc99e Initial load
duke
parents:
diff changeset
167 public:
a61af66fc99e Initial load
duke
parents:
diff changeset
168 GCAdaptivePolicyCounters(const char* name,
a61af66fc99e Initial load
duke
parents:
diff changeset
169 int collectors,
a61af66fc99e Initial load
duke
parents:
diff changeset
170 int generations,
a61af66fc99e Initial load
duke
parents:
diff changeset
171 AdaptiveSizePolicy* size_policy);
a61af66fc99e Initial load
duke
parents:
diff changeset
172
a61af66fc99e Initial load
duke
parents:
diff changeset
173 inline void update_survived(size_t survived) {
a61af66fc99e Initial load
duke
parents:
diff changeset
174 _survived_counter->set_value(survived);
a61af66fc99e Initial load
duke
parents:
diff changeset
175 }
a61af66fc99e Initial load
duke
parents:
diff changeset
176 inline void update_promoted(size_t promoted) {
a61af66fc99e Initial load
duke
parents:
diff changeset
177 _promoted_counter->set_value(promoted);
a61af66fc99e Initial load
duke
parents:
diff changeset
178 }
a61af66fc99e Initial load
duke
parents:
diff changeset
179 inline void update_young_capacity(size_t size_in_bytes) {
a61af66fc99e Initial load
duke
parents:
diff changeset
180 _young_capacity_counter->set_value(size_in_bytes);
a61af66fc99e Initial load
duke
parents:
diff changeset
181 }
a61af66fc99e Initial load
duke
parents:
diff changeset
182
a61af66fc99e Initial load
duke
parents:
diff changeset
183 virtual void update_counters();
a61af66fc99e Initial load
duke
parents:
diff changeset
184
a61af66fc99e Initial load
duke
parents:
diff changeset
185 inline void update_survivor_size_counters() {
a61af66fc99e Initial load
duke
parents:
diff changeset
186 desired_survivor_size()->set_value(
a61af66fc99e Initial load
duke
parents:
diff changeset
187 size_policy()->calculated_survivor_size_in_bytes());
a61af66fc99e Initial load
duke
parents:
diff changeset
188 }
a61af66fc99e Initial load
duke
parents:
diff changeset
189 inline void update_survivor_overflowed(bool survivor_overflowed) {
a61af66fc99e Initial load
duke
parents:
diff changeset
190 _survivor_overflowed_counter->set_value(survivor_overflowed);
a61af66fc99e Initial load
duke
parents:
diff changeset
191 }
6818
22b8d3d181d9 8000351: Tenuring threshold should be unsigned
jwilhelm
parents: 1972
diff changeset
192 inline void update_tenuring_threshold(uint threshold) {
0
a61af66fc99e Initial load
duke
parents:
diff changeset
193 tenuring_threshold()->set_value(threshold);
a61af66fc99e Initial load
duke
parents:
diff changeset
194 }
a61af66fc99e Initial load
duke
parents:
diff changeset
195 inline void update_increment_tenuring_threshold_for_gc_cost() {
a61af66fc99e Initial load
duke
parents:
diff changeset
196 _increment_tenuring_threshold_for_gc_cost_counter->set_value(
a61af66fc99e Initial load
duke
parents:
diff changeset
197 size_policy()->increment_tenuring_threshold_for_gc_cost());
a61af66fc99e Initial load
duke
parents:
diff changeset
198 }
a61af66fc99e Initial load
duke
parents:
diff changeset
199 inline void update_decrement_tenuring_threshold_for_gc_cost() {
a61af66fc99e Initial load
duke
parents:
diff changeset
200 _decrement_tenuring_threshold_for_gc_cost_counter->set_value(
a61af66fc99e Initial load
duke
parents:
diff changeset
201 size_policy()->decrement_tenuring_threshold_for_gc_cost());
a61af66fc99e Initial load
duke
parents:
diff changeset
202 }
a61af66fc99e Initial load
duke
parents:
diff changeset
203 inline void update_decrement_tenuring_threshold_for_survivor_limit() {
a61af66fc99e Initial load
duke
parents:
diff changeset
204 _decrement_tenuring_threshold_for_survivor_limit_counter->set_value(
a61af66fc99e Initial load
duke
parents:
diff changeset
205 size_policy()->decrement_tenuring_threshold_for_survivor_limit());
a61af66fc99e Initial load
duke
parents:
diff changeset
206 }
a61af66fc99e Initial load
duke
parents:
diff changeset
207 inline void update_change_young_gen_for_min_pauses() {
a61af66fc99e Initial load
duke
parents:
diff changeset
208 _change_young_gen_for_min_pauses_counter->set_value(
a61af66fc99e Initial load
duke
parents:
diff changeset
209 size_policy()->change_young_gen_for_min_pauses());
a61af66fc99e Initial load
duke
parents:
diff changeset
210 }
a61af66fc99e Initial load
duke
parents:
diff changeset
211 inline void update_change_old_gen_for_maj_pauses() {
a61af66fc99e Initial load
duke
parents:
diff changeset
212 _change_old_gen_for_maj_pauses_counter->set_value(
a61af66fc99e Initial load
duke
parents:
diff changeset
213 size_policy()->change_old_gen_for_maj_pauses());
a61af66fc99e Initial load
duke
parents:
diff changeset
214 }
a61af66fc99e Initial load
duke
parents:
diff changeset
215
a61af66fc99e Initial load
duke
parents:
diff changeset
216 inline void update_minor_collection_slope_counter() {
a61af66fc99e Initial load
duke
parents:
diff changeset
217 _minor_collection_slope_counter->set_value(
a61af66fc99e Initial load
duke
parents:
diff changeset
218 (jlong)(size_policy()->minor_collection_slope() * 1000)
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 inline void update_major_collection_slope_counter() {
a61af66fc99e Initial load
duke
parents:
diff changeset
223 _major_collection_slope_counter->set_value(
a61af66fc99e Initial load
duke
parents:
diff changeset
224 (jlong)(size_policy()->major_collection_slope() * 1000)
a61af66fc99e Initial load
duke
parents:
diff changeset
225 );
a61af66fc99e Initial load
duke
parents:
diff changeset
226 }
a61af66fc99e Initial load
duke
parents:
diff changeset
227
a61af66fc99e Initial load
duke
parents:
diff changeset
228 void set_size_policy(AdaptiveSizePolicy* v) { _size_policy = v; }
a61af66fc99e Initial load
duke
parents:
diff changeset
229
a61af66fc99e Initial load
duke
parents:
diff changeset
230 virtual GCPolicyCounters::Name kind() const {
a61af66fc99e Initial load
duke
parents:
diff changeset
231 return GCPolicyCounters::GCAdaptivePolicyCountersKind;
a61af66fc99e Initial load
duke
parents:
diff changeset
232 }
a61af66fc99e Initial load
duke
parents:
diff changeset
233 };
1972
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
234
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
235 #endif // SHARE_VM_GC_IMPLEMENTATION_SHARED_GCADAPTIVEPOLICYCOUNTERS_HPP