Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
v1
  • Loading branch information
zhengyu123 committed Jul 10, 2025
commit 324a5afb2806809fb929651f325823e419d7f671
11 changes: 3 additions & 8 deletions ddprof-lib/src/main/cpp/symbols_linux.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,6 @@ bool Symbols::_libs_limit_reported = false;
static std::unordered_set<u64> _parsed_inodes;

void Symbols::clearParsingCaches() {
_parsed_libraries.clear();
_parsed_inodes.clear();
}

Expand Down Expand Up @@ -573,11 +572,6 @@ static void collectSharedLibraries(std::unordered_map<u64, SharedLibrary>& libs,
continue; // all shared libraries have inode, except vDSO
}

int count = array->count();
if (count >= MAX_NATIVE_LIBS) {
break;
}

const char* map_start = map.addr();
const char *map_end = map.end();
if (inode != last_inode && map.offs() == 0) {
Expand All @@ -598,8 +592,9 @@ static void collectSharedLibraries(std::unordered_map<u64, SharedLibrary>& libs,
}
}

free(str);
fclose(f);
free(str);
fclose(f);
}
}

void Symbols::parseLibraries(CodeCacheArray *array, bool kernel_symbols) {
Expand Down