src/share/vm/utilities/elfStringTable.cpp

changeset 3900
d2a62e0f25eb
parent 3430
d7e3846464d0
child 4153
b9a9ed0f8eeb
     1.1 --- a/src/share/vm/utilities/elfStringTable.cpp	Wed Jun 27 15:23:36 2012 +0200
     1.2 +++ b/src/share/vm/utilities/elfStringTable.cpp	Thu Jun 28 17:03:16 2012 -0400
     1.3 @@ -42,7 +42,7 @@
     1.4  
     1.5    // try to load the string table
     1.6    long cur_offset = ftell(file);
     1.7 -  m_table = (char*)os::malloc(sizeof(char) * shdr.sh_size);
     1.8 +  m_table = (char*)os::malloc(sizeof(char) * shdr.sh_size, mtInternal);
     1.9    if (m_table != NULL) {
    1.10      // if there is an error, mark the error
    1.11      if (fseek(file, shdr.sh_offset, SEEK_SET) ||

mercurial