src/share/vm/utilities/elfFile.cpp

changeset 3901
24b9c7f4cae6
parent 3900
d2a62e0f25eb
child 4153
b9a9ed0f8eeb
equal deleted inserted replaced
3898:bcffa4c5eef6 3901:24b9c7f4cae6
45 m_symbol_tables = NULL; 45 m_symbol_tables = NULL;
46 m_next = NULL; 46 m_next = NULL;
47 m_status = NullDecoder::no_error; 47 m_status = NullDecoder::no_error;
48 48
49 int len = strlen(filepath) + 1; 49 int len = strlen(filepath) + 1;
50 m_filepath = (const char*)os::malloc(len * sizeof(char)); 50 m_filepath = (const char*)os::malloc(len * sizeof(char), mtInternal);
51 if (m_filepath != NULL) { 51 if (m_filepath != NULL) {
52 strcpy((char*)m_filepath, filepath); 52 strcpy((char*)m_filepath, filepath);
53 m_file = fopen(filepath, "r"); 53 m_file = fopen(filepath, "r");
54 if (m_file != NULL) { 54 if (m_file != NULL) {
55 load_tables(); 55 load_tables();

mercurial