summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/asan/asan_allocator.h
diff options
context:
space:
mode:
authorAlexey Samsonov <vonosmas@gmail.com>2014-12-19 20:35:53 +0000
committerAlexey Samsonov <vonosmas@gmail.com>2014-12-19 20:35:53 +0000
commit04eeec32e6d39d7c102d31a5e196ff9907d3cc60 (patch)
tree4449e3ee6f1b5d7cc50e1ef82cc5f04c2f032899 /compiler-rt/lib/asan/asan_allocator.h
parent30f330b39b29cf391fccb7b46b27011010e7dbfb (diff)
downloadbcm5719-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.h2
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:
OpenPOWER on IntegriCloud