1.1 --- a/src/share/vm/gc_implementation/shared/gSpaceCounters.hpp Wed Jun 27 15:23:36 2012 +0200 1.2 +++ b/src/share/vm/gc_implementation/shared/gSpaceCounters.hpp Thu Jun 28 17:03:16 2012 -0400 1.3 @@ -34,7 +34,7 @@ 1.4 // A GSpaceCounter is a holder class for performance counters 1.5 // that track a space; 1.6 1.7 -class GSpaceCounters: public CHeapObj { 1.8 +class GSpaceCounters: public CHeapObj<mtGC> { 1.9 friend class VMStructs; 1.10 1.11 private: 1.12 @@ -54,7 +54,7 @@ 1.13 GenerationCounters* gc, bool sampled=true); 1.14 1.15 ~GSpaceCounters() { 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 inline void update_capacity() {