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

changeset 3900
d2a62e0f25eb
parent 3176
8229bd737950
child 4153
b9a9ed0f8eeb
     1.1 --- a/src/share/vm/gc_implementation/shared/generationCounters.hpp	Wed Jun 27 15:23:36 2012 +0200
     1.2 +++ b/src/share/vm/gc_implementation/shared/generationCounters.hpp	Thu Jun 28 17:03:16 2012 -0400
     1.3 @@ -31,7 +31,7 @@
     1.4  // A GenerationCounter is a holder class for performance counters
     1.5  // that track a generation
     1.6  
     1.7 -class GenerationCounters: public CHeapObj {
     1.8 +class GenerationCounters: public CHeapObj<mtGC> {
     1.9    friend class VMStructs;
    1.10  
    1.11  private:
    1.12 @@ -69,7 +69,7 @@
    1.13                       VirtualSpace* v);
    1.14  
    1.15    ~GenerationCounters() {
    1.16 -    if (_name_space != NULL) FREE_C_HEAP_ARRAY(char, _name_space);
    1.17 +    if (_name_space != NULL) FREE_C_HEAP_ARRAY(char, _name_space, mtGC);
    1.18    }
    1.19  
    1.20    virtual void update_all();

mercurial