src/share/vm/runtime/perfMemory.cpp

changeset 3900
d2a62e0f25eb
parent 2314
f95d63e2154a
child 4153
b9a9ed0f8eeb
     1.1 --- a/src/share/vm/runtime/perfMemory.cpp	Wed Jun 27 15:23:36 2012 +0200
     1.2 +++ b/src/share/vm/runtime/perfMemory.cpp	Thu Jun 28 17:03:16 2012 -0400
     1.3 @@ -112,7 +112,7 @@
     1.4        warning("Could not create PerfData Memory region, reverting to malloc");
     1.5      }
     1.6  
     1.7 -    _prologue = NEW_C_HEAP_OBJ(PerfDataPrologue);
     1.8 +    _prologue = NEW_C_HEAP_OBJ(PerfDataPrologue, mtInternal);
     1.9    }
    1.10    else {
    1.11  
    1.12 @@ -244,10 +244,10 @@
    1.13    if (PerfDataSaveFile != NULL) {
    1.14      // dest_file_name stores the validated file name if file_name
    1.15      // contains %p which will be replaced by pid.
    1.16 -    dest_file = NEW_C_HEAP_ARRAY(char, JVM_MAXPATHLEN);
    1.17 +    dest_file = NEW_C_HEAP_ARRAY(char, JVM_MAXPATHLEN, mtInternal);
    1.18      if(!Arguments::copy_expand_pid(PerfDataSaveFile, strlen(PerfDataSaveFile),
    1.19                                     dest_file, JVM_MAXPATHLEN)) {
    1.20 -      FREE_C_HEAP_ARRAY(char, dest_file);
    1.21 +      FREE_C_HEAP_ARRAY(char, dest_file, mtInternal);
    1.22        if (PrintMiscellaneous && Verbose) {
    1.23          warning("Invalid performance data file path name specified, "\
    1.24                  "fall back to a default name");
    1.25 @@ -257,7 +257,7 @@
    1.26      }
    1.27    }
    1.28    // create the name of the file for retaining the instrumentation memory.
    1.29 -  dest_file = NEW_C_HEAP_ARRAY(char, PERFDATA_FILENAME_LEN);
    1.30 +  dest_file = NEW_C_HEAP_ARRAY(char, PERFDATA_FILENAME_LEN, mtInternal);
    1.31    jio_snprintf(dest_file, PERFDATA_FILENAME_LEN,
    1.32                 "%s_%d", PERFDATA_NAME, os::current_process_id());
    1.33  

mercurial