[PATCH] D106213: [lld-macho] Enable copy-on-write for input buffers

Duncan P. N. Exon Smith via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 26 15:21:04 PDT 2021


dexonsmith added a comment.

In D106213#2905606 <https://reviews.llvm.org/D106213#2905606>, @dblaikie wrote:

> Any idea what ld64 does in this case? Might be worth checking (should be testable, I think - give it a really big input section that it needs to canonicalize/fold, and see if that produces more total memory usage than if the section is small?) - and if it doesn't have the same negative effect on memory usage, maybe that's a hint that there's some other lower-(memory)-cost solution to the problem?

I believe ld64 takes a different approach: it treats the fixups as-if-zero when comparing/hashing content, without sacrificing the `mmap` optimization.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D106213/new/

https://reviews.llvm.org/D106213



More information about the llvm-commits mailing list