src/share/vm/gc_implementation/shared/gcAdaptivePolicyCounters.hpp

changeset 2314
f95d63e2154a
parent 1907
c18cbe5936b8
child 4129
22b8d3d181d9
equal deleted inserted replaced
2313:e33f46fc48ed 2314:f95d63e2154a
1 /* 1 /*
2 * Copyright (c) 2004, 2005, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
20 * or visit www.oracle.com if you need additional information or have any 20 * or visit www.oracle.com if you need additional information or have any
21 * questions. 21 * questions.
22 * 22 *
23 */ 23 */
24 24
25 #ifndef SHARE_VM_GC_IMPLEMENTATION_SHARED_GCADAPTIVEPOLICYCOUNTERS_HPP
26 #define SHARE_VM_GC_IMPLEMENTATION_SHARED_GCADAPTIVEPOLICYCOUNTERS_HPP
27
28 #ifndef SERIALGC
29 #include "gc_implementation/shared/adaptiveSizePolicy.hpp"
30 #include "gc_implementation/shared/gcPolicyCounters.hpp"
31 #endif
32
25 // This class keeps statistical information and computes the 33 // This class keeps statistical information and computes the
26 // size of the heap. 34 // size of the heap.
27 35
28 class GCAdaptivePolicyCounters : public GCPolicyCounters { 36 class GCAdaptivePolicyCounters : public GCPolicyCounters {
29 protected: 37 protected:
220 228
221 virtual GCPolicyCounters::Name kind() const { 229 virtual GCPolicyCounters::Name kind() const {
222 return GCPolicyCounters::GCAdaptivePolicyCountersKind; 230 return GCPolicyCounters::GCAdaptivePolicyCountersKind;
223 } 231 }
224 }; 232 };
233
234 #endif // SHARE_VM_GC_IMPLEMENTATION_SHARED_GCADAPTIVEPOLICYCOUNTERS_HPP

mercurial