[compiler-rt] dc3388b - [msan] Respect no_huge_pages_for_shadow.
Evgenii Stepanov via llvm-commits
llvm-commits at lists.llvm.org
Sat Aug 1 17:07:26 PDT 2020
Author: Evgenii Stepanov
Date: 2020-08-01T16:59:51-07:00
New Revision: dc3388b0209d17f7ee2f4dc3e4f072dc397dd75d
URL: https://github.com/llvm/llvm-project/commit/dc3388b0209d17f7ee2f4dc3e4f072dc397dd75d
DIFF: https://github.com/llvm/llvm-project/commit/dc3388b0209d17f7ee2f4dc3e4f072dc397dd75d.diff
LOG: [msan] Respect no_huge_pages_for_shadow.
Disable huge pages in the MSan shadow region when
no_huge_pages_for_shadow == true (default).
Differential Revision: https://reviews.llvm.org/D85061
Added:
Modified:
compiler-rt/lib/msan/msan_linux.cpp
Removed:
################################################################################
diff --git a/compiler-rt/lib/msan/msan_linux.cpp b/compiler-rt/lib/msan/msan_linux.cpp
index d61e9dee3065..bfdae0b920c9 100644
--- a/compiler-rt/lib/msan/msan_linux.cpp
+++ b/compiler-rt/lib/msan/msan_linux.cpp
@@ -142,7 +142,7 @@ bool InitShadow(bool init_origins) {
if (map) {
if (!CheckMemoryRangeAvailability(start, size))
return false;
- if (!MmapFixedNoReserve(start, size, kMemoryLayout[i].name))
+ if (!MmapFixedSuperNoReserve(start, size, kMemoryLayout[i].name))
return false;
if (common_flags()->use_madv_dontdump)
DontDumpShadowMemory(start, size);
More information about the llvm-commits
mailing list