aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Basic/SourceManager.cpp
diff options
context:
space:
mode:
authorJoseph Tremoulet <jotrem@microsoft.com>2021-04-08 09:06:52 -0400
committerJoseph Tremoulet <jotrem@microsoft.com>2021-04-08 09:07:25 -0400
commitb785e03612d76145c58cb31b6fd6911a5e41e8e3 (patch)
treedf6b8d67283c24ee0ddf91411f4e7e055c0e677a /clang/lib/Basic/SourceManager.cpp
parent3344cd3a14778e3a514c99c24f9dd98b9d577894 (diff)
downloadllvm-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