HomePhabricator

Don't require a null terminator when loading objects

Description

Don't require a null terminator when loading objects

When a null terminator is required and the file size is a multiple of the system page size, MemoryBuffer will prefer pread() over mmap(), which can result in excessive memory usage.

Patch by Mike Hommey!

Differential Revision: https://reviews.llvm.org/D56475

Details

Committed
dmajorJan 9 2019, 3:36 PM
Differential Revision
D56475: Don't require a null terminator when loading objects
Parents
rL350773: Write PDB/variables.test to be more robust.
Branches
Unknown
Tags
Unknown