equal
deleted
inserted
replaced
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 |