src/share/vm/utilities/elfStringTable.cpp

changeset 3901
24b9c7f4cae6
parent 3900
d2a62e0f25eb
child 4153
b9a9ed0f8eeb
     1.1 --- a/src/share/vm/utilities/elfStringTable.cpp	Fri Jun 29 17:12:15 2012 -0700
     1.2 +++ b/src/share/vm/utilities/elfStringTable.cpp	Mon Jul 02 13:11:28 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