[all-commits] [llvm/llvm-project] 95d21f: [lld-macho] Reduce memory usage of printing thunks...
alx32 via All-commits
all-commits at lists.llvm.org
Wed Jan 15 22:58:46 PST 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 95d21f6015241f1fbf36e495f101080bdcee8cd4
https://github.com/llvm/llvm-project/commit/95d21f6015241f1fbf36e495f101080bdcee8cd4
Author: alx32 <103613512+alx32 at users.noreply.github.com>
Date: 2025-01-15 (Wed, 15 Jan 2025)
Changed paths:
M lld/MachO/MapFile.cpp
M lld/test/MachO/arm64-thunks.s
Log Message:
-----------
[lld-macho] Reduce memory usage of printing thunks in map file (#122785)
This commit improves the memory efficiency of the lld-macho linker by
optimizing how thunks are printed in the map file. Previously, merging
vectors of input sections required creating a temporary vector, which
increased memory usage and in some cases caused the linker to run out of
memory as reported in comments on
https://github.com/llvm/llvm-project/pull/120496. The new approach
interleaves the printing of two arrays of ConcatInputSection in sorted
order without allocating additional memory for a merged array.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list