summaryrefslogtreecommitdiff
path: root/lib/sanitizer_common/sanitizer_mac.cc
diff options
context:
space:
mode:
authorAlexander Potapenko <glider@google.com>2013-03-26 10:34:37 +0000
committerAlexander Potapenko <glider@google.com>2013-03-26 10:34:37 +0000
commit9ae2883d88dd28b9c5dc862107e6e6d12a35926e (patch)
tree231964f1b3d5de7c1d2006f00517722a91680a8b /lib/sanitizer_common/sanitizer_mac.cc
parentb037f754eb43ddd2c5401ff7c7b212b57f8f4eb6 (diff)
[libsanitizer] Unmapping the old cache partially invalidates the memory layout, so add
a flag to skip cache update for cases when that's unacceptable (e.g. lsan). Patch by Sergey Matveev (earthdok@google.com) git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@178000 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/sanitizer_common/sanitizer_mac.cc')
-rw-r--r--lib/sanitizer_common/sanitizer_mac.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sanitizer_common/sanitizer_mac.cc b/lib/sanitizer_common/sanitizer_mac.cc
index 98ccbab5f..70128e3fa 100644
--- a/lib/sanitizer_common/sanitizer_mac.cc
+++ b/lib/sanitizer_common/sanitizer_mac.cc
@@ -165,7 +165,7 @@ void PrepareForSandboxing() {
// ----------------- sanitizer_procmaps.h
-MemoryMappingLayout::MemoryMappingLayout() {
+MemoryMappingLayout::MemoryMappingLayout(bool cache_enabled) {
Reset();
}