1.1 --- a/src/share/vm/gc_implementation/shared/collectorCounters.hpp Wed Jun 27 15:23:36 2012 +0200 1.2 +++ b/src/share/vm/gc_implementation/shared/collectorCounters.hpp Thu Jun 28 17:03:16 2012 -0400 1.3 @@ -30,7 +30,7 @@ 1.4 // CollectorCounters is a holder class for performance counters 1.5 // that track a collector 1.6 1.7 -class CollectorCounters: public CHeapObj { 1.8 +class CollectorCounters: public CHeapObj<mtGC> { 1.9 friend class VMStructs; 1.10 1.11 private: 1.12 @@ -50,7 +50,7 @@ 1.13 CollectorCounters(const char* name, int ordinal); 1.14 1.15 ~CollectorCounters() { 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 PerfCounter* invocation_counter() const { return _invocations; }