Mercurial > hg > graal-jvmci-8
comparison src/share/vm/utilities/elfFile.cpp @ 6197:d2a62e0f25eb
6995781: Native Memory Tracking (Phase 1)
7151532: DCmd for hotspot native memory tracking
Summary: Implementation of native memory tracking phase 1, which tracks VM native memory usage, and related DCmd
Reviewed-by: acorn, coleenp, fparain
author | zgu |
---|---|
date | Thu, 28 Jun 2012 17:03:16 -0400 |
parents | d7e3846464d0 |
children | b9a9ed0f8eeb |
comparison
equal
deleted
inserted
replaced
6174:74533f63b116 | 6197:d2a62e0f25eb |
---|---|
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(); |