summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/asan/asan_allocator.h
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2016-08-26 00:06:03 +0000
committerKostya Serebryany <kcc@google.com>2016-08-26 00:06:03 +0000
commit7c5ae7cbc60f1196bd4cde77c68f4b6995596215 (patch)
treefee79146dcf4b8db1758bfb4111e88854541e704 /compiler-rt/lib/asan/asan_allocator.h
parent1426f59a76591ed507d81f1593e34fd3894b8231 (diff)
downloadbcm5719-llvm-7c5ae7cbc60f1196bd4cde77c68f4b6995596215.tar.gz
bcm5719-llvm-7c5ae7cbc60f1196bd4cde77c68f4b6995596215.zip
[sanitizer] enable random shuffling the memory chunks inside the allocator, under a flag. Set this flag for the scudo allocator, add a test.
llvm-svn: 279793
Diffstat (limited to 'compiler-rt/lib/asan/asan_allocator.h')
-rw-r--r--compiler-rt/lib/asan/asan_allocator.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler-rt/lib/asan/asan_allocator.h b/compiler-rt/lib/asan/asan_allocator.h
index 407639fe137..625e6edfd32 100644
--- a/compiler-rt/lib/asan/asan_allocator.h
+++ b/compiler-rt/lib/asan/asan_allocator.h
@@ -135,6 +135,7 @@ struct AP64 { // Allocator64 parameters. Deliberately using a short name.
static const uptr kMetadataSize = 0;
typedef __asan::SizeClassMap SizeClassMap;
typedef AsanMapUnmapCallback MapUnmapCallback;
+ static const uptr kFlags = 0;
};
typedef SizeClassAllocator64<AP64> PrimaryAllocator;
OpenPOWER on IntegriCloud