diff options
| author | Kostya Serebryany <kcc@google.com> | 2016-08-26 00:06:03 +0000 |
|---|---|---|
| committer | Kostya Serebryany <kcc@google.com> | 2016-08-26 00:06:03 +0000 |
| commit | 7c5ae7cbc60f1196bd4cde77c68f4b6995596215 (patch) | |
| tree | fee79146dcf4b8db1758bfb4111e88854541e704 /compiler-rt/lib/scudo/scudo_allocator.cpp | |
| parent | 1426f59a76591ed507d81f1593e34fd3894b8231 (diff) | |
| download | bcm5719-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/scudo/scudo_allocator.cpp')
| -rw-r--r-- | compiler-rt/lib/scudo/scudo_allocator.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler-rt/lib/scudo/scudo_allocator.cpp b/compiler-rt/lib/scudo/scudo_allocator.cpp index b5d8fc8bf87..d5284a53e12 100644 --- a/compiler-rt/lib/scudo/scudo_allocator.cpp +++ b/compiler-rt/lib/scudo/scudo_allocator.cpp @@ -38,6 +38,8 @@ struct AP { static const uptr kMetadataSize = 0; typedef DefaultSizeClassMap SizeClassMap; typedef NoOpMapUnmapCallback MapUnmapCallback; + static const uptr kFlags = + SizeClassAllocator64FlagMasks::kRandomShuffleChunks; }; typedef SizeClassAllocator64<AP> PrimaryAllocator; |

