1.1 --- a/src/share/vm/gc_implementation/shared/hSpaceCounters.hpp Wed Jun 27 15:23:36 2012 +0200 1.2 +++ b/src/share/vm/gc_implementation/shared/hSpaceCounters.hpp Thu Jun 28 17:03:16 2012 -0400 1.3 @@ -37,7 +37,7 @@ 1.4 class HeapSpaceUsedHelper; 1.5 class G1SpaceMonitoringSupport; 1.6 1.7 -class HSpaceCounters: public CHeapObj { 1.8 +class HSpaceCounters: public CHeapObj<mtGC> { 1.9 friend class VMStructs; 1.10 1.11 private: 1.12 @@ -55,7 +55,7 @@ 1.13 size_t initial_capacity, GenerationCounters* gc); 1.14 1.15 ~HSpaceCounters() { 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(size_t v) {