diff options
author | David Carlier <devnexen@gmail.com> | 2019-08-05 20:54:36 +0000 |
---|---|---|
committer | David Carlier <devnexen@gmail.com> | 2019-08-05 20:54:36 +0000 |
commit | adba3eba204c3bd4b433ba1a05c4106a89a53a25 (patch) | |
tree | b5db4d0bcd5031e60203367dc0291e0580d259e7 /lib/hwasan/hwasan_linux.cpp | |
parent | ab588ade455a9ac741acb9ba3d58ae3ca6a2e0e1 (diff) | |
download | compiler-rt-adba3eba204c3bd4b433ba1a05c4106a89a53a25.tar.gz |
[Sanitizer] Linux refactor shadow huge page mode handling
Disabling Transparent huge page mode refactored in one function.
Reviewers: vitalybuka
Reviewed By: vitalybuka
Differential Revision: https://reviews.llvm.org/D65771
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@367925 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/hwasan/hwasan_linux.cpp')
-rw-r--r-- | lib/hwasan/hwasan_linux.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/hwasan/hwasan_linux.cpp b/lib/hwasan/hwasan_linux.cpp index d93297648..051ec2fb9 100644 --- a/lib/hwasan/hwasan_linux.cpp +++ b/lib/hwasan/hwasan_linux.cpp @@ -211,8 +211,7 @@ void InitThreads() { static void MadviseShadowRegion(uptr beg, uptr end) { uptr size = end - beg + 1; - if (common_flags()->no_huge_pages_for_shadow) - NoHugePagesInRegion(beg, size); + SetShadowRegionHugePageMode(beg, size); if (common_flags()->use_madv_dontdump) DontDumpShadowMemory(beg, size); } |