src/hotspot/share/utilities/elfFile.cpp
changeset 51334 cc2c79d22508
parent 48975 2c35fd3c5789
equal deleted inserted replaced
51333:f6641fcf7b7e 51334:cc2c79d22508
   104     set_position(_marked_pos);
   104     set_position(_marked_pos);
   105   }
   105   }
   106 }
   106 }
   107 
   107 
   108 ElfFile::ElfFile(const char* filepath) :
   108 ElfFile::ElfFile(const char* filepath) :
   109   _string_tables(NULL), _symbol_tables(NULL), _funcDesc_table(NULL),
   109   _next(NULL), _filepath(NULL), _file(NULL),
   110   _next(NULL), _status(NullDecoder::no_error),
   110   _symbol_tables(NULL), _string_tables(NULL), _shdr_string_table(NULL), _funcDesc_table(NULL),
   111   _shdr_string_table(NULL),  _file(NULL), _filepath(NULL) {
   111   _status(NullDecoder::no_error) {
   112   memset(&_elfHdr, 0, sizeof(_elfHdr));
   112   memset(&_elfHdr, 0, sizeof(_elfHdr));
   113 
   113 
   114   int len = strlen(filepath) + 1;
   114   int len = strlen(filepath) + 1;
   115   _filepath = (char*)os::malloc(len * sizeof(char), mtInternal);
   115   _filepath = (char*)os::malloc(len * sizeof(char), mtInternal);
   116   if (_filepath == NULL) {
   116   if (_filepath == NULL) {