[PATCH] D65775: [Sanitizer] Linux explicitally migrate shadow mapping to Transparent Huge Page
David CARLIER via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 5 14:07:43 PDT 2019
devnexen created this revision.
devnexen added a reviewer: vitalybuka.
devnexen created this object with visibility "All Users".
Herald added subscribers: llvm-commits, Sanitizers, kubamracek.
Herald added projects: LLVM, Sanitizers.
in madvise mode, the shadow pages will be migrated only via madvise explicit calls.
Repository:
rCRT Compiler Runtime
https://reviews.llvm.org/D65775
Files:
compiler-rt/lib/sanitizer_common/sanitizer_posix_libcdep.cpp
Index: compiler-rt/lib/sanitizer_common/sanitizer_posix_libcdep.cpp
===================================================================
--- compiler-rt/lib/sanitizer_common/sanitizer_posix_libcdep.cpp
+++ compiler-rt/lib/sanitizer_common/sanitizer_posix_libcdep.cpp
@@ -72,7 +72,7 @@
#ifdef MADV_NOHUGEPAGE // May not be defined on old systems.
if (common_flags()->no_huge_pages_for_shadow)
return madvise((char *)addr, size, MADV_NOHUGEPAGE) == 0;
- return true;
+ return madvise((char *)addr, size, MADV_HUGEPAGE) == 0;
#else
return true;
#endif // MADV_NOHUGEPAGE
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D65775.213461.patch
Type: text/x-patch
Size: 585 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190805/db4ae995/attachment.bin>
More information about the llvm-commits
mailing list