hotspot/src/share/vm/gc_implementation/shared/hSpaceCounters.cpp
changeset 13195 be27e1b6a4b9
parent 9338 05ee447bd420
child 13963 e5b53c306fb5
equal deleted inserted replaced
13099:64752e56d721 13195:be27e1b6a4b9
    38     ResourceMark rm;
    38     ResourceMark rm;
    39 
    39 
    40     const char* cns =
    40     const char* cns =
    41       PerfDataManager::name_space(gc->name_space(), "space", ordinal);
    41       PerfDataManager::name_space(gc->name_space(), "space", ordinal);
    42 
    42 
    43     _name_space = NEW_C_HEAP_ARRAY(char, strlen(cns)+1);
    43     _name_space = NEW_C_HEAP_ARRAY(char, strlen(cns)+1, mtGC);
    44     strcpy(_name_space, cns);
    44     strcpy(_name_space, cns);
    45 
    45 
    46     const char* cname = PerfDataManager::counter_name(_name_space, "name");
    46     const char* cname = PerfDataManager::counter_name(_name_space, "name");
    47     PerfDataManager::create_string_constant(SUN_GC, cname, name, CHECK);
    47     PerfDataManager::create_string_constant(SUN_GC, cname, name, CHECK);
    48 
    48