diff options
author | Kostya Serebryany <kcc@google.com> | 2016-07-21 18:47:53 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@google.com> | 2016-07-21 18:47:53 +0000 |
commit | 35eeea707e432c9b365ee5aef87ece522c935486 (patch) | |
tree | 5fbd8762ef922f63fbd5f5cd726fef38d07e0ebe /compiler-rt/lib/sanitizer_common/tests/sanitizer_allocator_test.cc | |
parent | ab1e7865030ecc3909634a13991a923f29927fb3 (diff) | |
download | bcm5719-llvm-35eeea707e432c9b365ee5aef87ece522c935486.tar.gz bcm5719-llvm-35eeea707e432c9b365ee5aef87ece522c935486.zip |
[sanitizer] allocator: remove kPopulateSize and only use SizeClassMap::MaxCached; ensure that TransferBatch size is a power of two, refactor TransferBatch creation/destruction into separate functions.
llvm-svn: 276318
Diffstat (limited to 'compiler-rt/lib/sanitizer_common/tests/sanitizer_allocator_test.cc')
-rw-r--r-- | compiler-rt/lib/sanitizer_common/tests/sanitizer_allocator_test.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/lib/sanitizer_common/tests/sanitizer_allocator_test.cc b/compiler-rt/lib/sanitizer_common/tests/sanitizer_allocator_test.cc index 31eec19c363..76c00e4f4f9 100644 --- a/compiler-rt/lib/sanitizer_common/tests/sanitizer_allocator_test.cc +++ b/compiler-rt/lib/sanitizer_common/tests/sanitizer_allocator_test.cc @@ -781,7 +781,7 @@ TEST(SanitizerCommon, LargeMmapAllocatorBlockBegin) { // Regression test for out-of-memory condition in PopulateFreeList(). TEST(SanitizerCommon, SizeClassAllocator64PopulateFreeListOOM) { // In a world where regions are small and chunks are huge... - typedef SizeClassMap<63, 128, 16> SpecialSizeClassMap; + typedef SizeClassMap<63, 126, 16> SpecialSizeClassMap; typedef SizeClassAllocator64<kAllocatorSpace, kAllocatorSize, 0, SpecialSizeClassMap> SpecialAllocator64; const uptr kRegionSize = |