diff options
author | Alexander Potapenko <glider@google.com> | 2013-03-26 10:34:37 +0000 |
---|---|---|
committer | Alexander Potapenko <glider@google.com> | 2013-03-26 10:34:37 +0000 |
commit | 9ae2883d88dd28b9c5dc862107e6e6d12a35926e (patch) | |
tree | 231964f1b3d5de7c1d2006f00517722a91680a8b /lib/sanitizer_common/sanitizer_procmaps.h | |
parent | b037f754eb43ddd2c5401ff7c7b212b57f8f4eb6 (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_procmaps.h')
-rw-r--r-- | lib/sanitizer_common/sanitizer_procmaps.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sanitizer_common/sanitizer_procmaps.h b/lib/sanitizer_common/sanitizer_procmaps.h index 248547865..565901960 100644 --- a/lib/sanitizer_common/sanitizer_procmaps.h +++ b/lib/sanitizer_common/sanitizer_procmaps.h @@ -41,7 +41,7 @@ struct ProcSelfMapsBuff { class MemoryMappingLayout { public: - MemoryMappingLayout(); + explicit MemoryMappingLayout(bool cache_enabled); bool Next(uptr *start, uptr *end, uptr *offset, char filename[], uptr filename_size, uptr *protection); void Reset(); |