[PATCH] D49094: Reduce memory usage when creating .gdb_index. NFC.

Rui Ueyama via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 9 11:40:45 PDT 2018


ruiu created this revision.
ruiu added a reviewer: grimar.
Herald added subscribers: arichardson, emaste.
Herald added a reviewer: espindola.

.gdb_index sections can be very large. When you are compiling
multi-gibibyte executables, they can be larger than 1 GiB. The previous
implementation of .gdb_index seems to consume too much memory.

This patch is to reduce the memory consumption by eliminating temporary
objects.


https://reviews.llvm.org/D49094

Files:
  lld/ELF/SyntheticSections.cpp
  lld/ELF/SyntheticSections.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D49094.154659.patch
Type: text/x-patch
Size: 9962 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180709/ccce013e/attachment.bin>


More information about the llvm-commits mailing list