comparison src/share/vm/gc_implementation/parallelScavenge/psGenerationCounters.hpp @ 1972:f95d63e2154a

6989984: Use standard include model for Hospot Summary: Replaced MakeDeps and the includeDB files with more standardized solutions. Reviewed-by: coleenp, kvn, kamg
author stefank
date Tue, 23 Nov 2010 13:22:55 -0800
parents c18cbe5936b8
children
comparison
equal deleted inserted replaced
1971:e33f46fc48ed 1972:f95d63e2154a
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