[lld] [llvm] [lld][MachO] Follow-up to use madvise() for threaded file page-in. (PR #157917)

Richard Smith via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 11 12:58:21 PDT 2025


zygoloid wrote:

> The default value for RequiresNullTerminator in the header for MemoryBuffer::getFile(...) is true when not specified.

Can we fix that? That really seems like the wrong default, given that -- as we've discovered -- guaranteeing a null terminator is not free. Failing to provide the requested guarantee in some cases seems like the wrong answer.

https://github.com/llvm/llvm-project/pull/157917


More information about the llvm-commits mailing list