hotspot/src/share/vm/gc_implementation/shared/gcAdaptivePolicyCounters.hpp
changeset 7397 5b173b4ca846
parent 5547 f4b087cbb361
child 13925 37f75ba502b1
equal deleted inserted replaced
7396:518b01b064ff 7397:5b173b4ca846
     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