diff options
| author | Alexey Samsonov <vonosmas@gmail.com> | 2014-12-19 20:35:53 +0000 |
|---|---|---|
| committer | Alexey Samsonov <vonosmas@gmail.com> | 2014-12-19 20:35:53 +0000 |
| commit | 04eeec32e6d39d7c102d31a5e196ff9907d3cc60 (patch) | |
| tree | 4449e3ee6f1b5d7cc50e1ef82cc5f04c2f032899 /compiler-rt/lib/asan/asan_allocator.h | |
| parent | 30f330b39b29cf391fccb7b46b27011010e7dbfb (diff) | |
| download | bcm5719-llvm-04eeec32e6d39d7c102d31a5e196ff9907d3cc60.tar.gz bcm5719-llvm-04eeec32e6d39d7c102d31a5e196ff9907d3cc60.zip | |
[ASan] Change activation strategy.
Now ASan deactivation doesn't modify common or ASan-specific runtime
flags. Flags stay constant after initialization, and "deactivation"
instead stashes initialized runtime state, and deactivates the
runtime. Activation then just restores the original state (possibly,
overriden by some activation flags provided in system property on
Android).
llvm-svn: 224614
Diffstat (limited to 'compiler-rt/lib/asan/asan_allocator.h')
| -rw-r--r-- | compiler-rt/lib/asan/asan_allocator.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler-rt/lib/asan/asan_allocator.h b/compiler-rt/lib/asan/asan_allocator.h index 2072954c96f..521d47b0bd3 100644 --- a/compiler-rt/lib/asan/asan_allocator.h +++ b/compiler-rt/lib/asan/asan_allocator.h @@ -40,10 +40,12 @@ struct AllocatorOptions { u8 alloc_dealloc_mismatch; void SetFrom(const Flags *f, const CommonFlags *cf); + void CopyTo(Flags *f, CommonFlags *cf); }; void InitializeAllocator(const AllocatorOptions &options); void ReInitializeAllocator(const AllocatorOptions &options); +void GetAllocatorOptions(AllocatorOptions *options); class AsanChunkView { public: |

