[all-commits] [llvm/llvm-project] b785e0: Support: mapped_file_region: Pass MAP_NORESERVE t...
Joseph Tremoulet via All-commits
all-commits at lists.llvm.org
Thu Apr 8 06:07:57 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b785e03612d76145c58cb31b6fd6911a5e41e8e3
https://github.com/llvm/llvm-project/commit/b785e03612d76145c58cb31b6fd6911a5e41e8e3
Author: Joseph Tremoulet <jotrem at microsoft.com>
Date: 2021-04-08 (Thu, 08 Apr 2021)
Changed paths:
M llvm/lib/Support/Unix/Path.inc
Log Message:
-----------
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
More information about the All-commits
mailing list