[PATCH] D52194: [ELF] Keep GdbIndexSection::Symbols non-flattened to avoid allocating large vector

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 17 15:15:37 PDT 2018


MaskRay added a comment.

If `SyntheticSection::writeTo` is guaranteed to be called once (I'm not sure if that is the case), `Symbols.clear()` in `GdbIndexSection::writeTo` decrease the maximum RSS by 190MiB, but I'm not sure if it is worthy to do these (freeing resources prematurely at the end of `writeTo`) for GdbIndexSection and/or other sections..


Repository:
  rLLD LLVM Linker

https://reviews.llvm.org/D52194





More information about the llvm-commits mailing list