hotspot/src/share/vm/gc_implementation/parallelScavenge/psGenerationCounters.hpp
changeset 7397 5b173b4ca846
parent 5547 f4b087cbb361
child 26324 6b9c12e15535
equal deleted inserted replaced
7396:518b01b064ff 7397:5b173b4ca846
     1 
     1 
     2 /*
     2 /*
     3  * Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
     3  * Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
     4  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     5  *
     5  *
     6  * This code is free software; you can redistribute it and/or modify it
     6  * This code is free software; you can redistribute it and/or modify it
     7  * under the terms of the GNU General Public License version 2 only, as
     7  * under the terms of the GNU General Public License version 2 only, as
     8  * published by the Free Software Foundation.
     8  * published by the Free Software Foundation.
    21  * or visit www.oracle.com if you need additional information or have any
    21  * or visit www.oracle.com if you need additional information or have any
    22  * questions.
    22  * questions.
    23  *
    23  *
    24  */
    24  */
    25 
    25 
       
    26 #ifndef SHARE_VM_GC_IMPLEMENTATION_PARALLELSCAVENGE_PSGENERATIONCOUNTERS_HPP
       
    27 #define SHARE_VM_GC_IMPLEMENTATION_PARALLELSCAVENGE_PSGENERATIONCOUNTERS_HPP
       
    28 
       
    29 #include "gc_implementation/parallelScavenge/psVirtualspace.hpp"
       
    30 #include "gc_implementation/shared/generationCounters.hpp"
       
    31 #include "runtime/perfData.hpp"
       
    32 
    26 // A PSGenerationCounter is a holder class for performance counters
    33 // A PSGenerationCounter is a holder class for performance counters
    27 // that track a generation
    34 // that track a generation
    28 
    35 
    29 class PSGenerationCounters: public GenerationCounters {
    36 class PSGenerationCounters: public GenerationCounters {
    30   friend class VMStructs;
    37   friend class VMStructs;
    39   void update_all() {
    46   void update_all() {
    40     assert(_virtual_space == NULL, "Only one should be in use");
    47     assert(_virtual_space == NULL, "Only one should be in use");
    41     _current_size->set_value(_ps_virtual_space->committed_size());
    48     _current_size->set_value(_ps_virtual_space->committed_size());
    42   }
    49   }
    43 };
    50 };
       
    51 
       
    52 #endif // SHARE_VM_GC_IMPLEMENTATION_PARALLELSCAVENGE_PSGENERATIONCOUNTERS_HPP