hotspot/src/share/vm/utilities/elfSymbolTable.cpp
changeset 13195 be27e1b6a4b9
parent 11483 4d3f4bca0019
child 13963 e5b53c306fb5
equal deleted inserted replaced
13099:64752e56d721 13195:be27e1b6a4b9
    38 
    38 
    39   // try to load the string table
    39   // try to load the string table
    40   long cur_offset = ftell(file);
    40   long cur_offset = ftell(file);
    41   if (cur_offset != -1) {
    41   if (cur_offset != -1) {
    42     // call malloc so we can back up if memory allocation fails.
    42     // call malloc so we can back up if memory allocation fails.
    43     m_symbols = (Elf_Sym*)os::malloc(shdr.sh_size);
    43     m_symbols = (Elf_Sym*)os::malloc(shdr.sh_size, mtInternal);
    44     if (m_symbols) {
    44     if (m_symbols) {
    45       if (fseek(file, shdr.sh_offset, SEEK_SET) ||
    45       if (fseek(file, shdr.sh_offset, SEEK_SET) ||
    46         fread((void*)m_symbols, shdr.sh_size, 1, file) != 1 ||
    46         fread((void*)m_symbols, shdr.sh_size, 1, file) != 1 ||
    47         fseek(file, cur_offset, SEEK_SET)) {
    47         fseek(file, cur_offset, SEEK_SET)) {
    48         m_status = NullDecoder::file_invalid;
    48         m_status = NullDecoder::file_invalid;