1.1 --- a/src/share/vm/gc_implementation/shared/cSpaceCounters.hpp Wed Jun 27 15:23:36 2012 +0200 1.2 +++ b/src/share/vm/gc_implementation/shared/cSpaceCounters.hpp Thu Jun 28 17:03:16 2012 -0400 1.3 @@ -32,7 +32,7 @@ 1.4 // A CSpaceCounters is a holder class for performance counters 1.5 // that track a space; 1.6 1.7 -class CSpaceCounters: public CHeapObj { 1.8 +class CSpaceCounters: public CHeapObj<mtGC> { 1.9 friend class VMStructs; 1.10 1.11 private: 1.12 @@ -52,7 +52,7 @@ 1.13 ContiguousSpace* s, GenerationCounters* gc); 1.14 1.15 ~CSpaceCounters() { 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, mtInternal); 1.18 } 1.19 1.20 inline void update_capacity() {