src/hotspot/share/utilities/elfStringTable.cpp
changeset 51334 cc2c79d22508
parent 48975 2c35fd3c5789
equal deleted inserted replaced
51333:f6641fcf7b7e 51334:cc2c79d22508
    32 #include "utilities/elfStringTable.hpp"
    32 #include "utilities/elfStringTable.hpp"
    33 
    33 
    34 // We will try to load whole string table into memory if we can.
    34 // We will try to load whole string table into memory if we can.
    35 // Otherwise, fallback to more expensive file operation.
    35 // Otherwise, fallback to more expensive file operation.
    36 ElfStringTable::ElfStringTable(FILE* const file, Elf_Shdr& shdr, int index) :
    36 ElfStringTable::ElfStringTable(FILE* const file, Elf_Shdr& shdr, int index) :
    37   _section(file, shdr), _index(index), _fd(file), _next(NULL) {
    37   _next(NULL), _index(index), _section(file, shdr), _fd(file) {
    38   _status = _section.status();
    38   _status = _section.status();
    39 }
    39 }
    40 
    40 
    41 ElfStringTable::~ElfStringTable() {
    41 ElfStringTable::~ElfStringTable() {
    42   if (_next != NULL) {
    42   if (_next != NULL) {