diff options
author | Joseph Tremoulet <jotrem@microsoft.com> | 2021-04-08 09:06:52 -0400 |
---|---|---|
committer | Joseph Tremoulet <jotrem@microsoft.com> | 2021-04-08 09:07:25 -0400 |
commit | b785e03612d76145c58cb31b6fd6911a5e41e8e3 (patch) | |
tree | df6b8d67283c24ee0ddf91411f4e7e055c0e677a /clang/lib/Basic/SourceManager.cpp | |
parent | 3344cd3a14778e3a514c99c24f9dd98b9d577894 (diff) | |
download | llvm-b785e03612d76145c58cb31b6fd6911a5e41e8e3.zip llvm-b785e03612d76145c58cb31b6fd6911a5e41e8e3.tar.gz llvm-b785e03612d76145c58cb31b6fd6911a5e41e8e3.tar.bz2 |
Support: mapped_file_region: Pass MAP_NORESERVE to mmap
This allows mapping larger files, delaying OOM failures until too many
pages of them are accessed. This is makes the behavior of the
mapped_file_region in this regard consistent between its "Unix" and
"Windows" implementations.
Guard the code witih #if defined(MAP_NORESERVE), consistent with other
uses of MAP_NORESERVE in llvm-project, because some FreeBSD versions do
not provide this flag.
Reviewed By: clayborg
Differential Revision: https://reviews.llvm.org/D96626
Diffstat (limited to 'clang/lib/Basic/SourceManager.cpp')
0 files changed, 0 insertions, 0 deletions