From 53c8cb44fef2db000e244a242f763b943bef1850 Mon Sep 17 00:00:00 2001 From: Igor Chorazewicz Date: Thu, 27 Jul 2023 14:13:46 +0000 Subject: [PATCH] [umf] use alloc sizes that are multiples of 8 to make ASAN happy. By default we are using alignment == 8 and size needs to be a multiple of that. We might consider adding extra tests, specifically for different sizes. --- test/unified_malloc_framework/memoryPool.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/unified_malloc_framework/memoryPool.hpp b/test/unified_malloc_framework/memoryPool.hpp index 3470058d58..fde5954cf8 100644 --- a/test/unified_malloc_framework/memoryPool.hpp +++ b/test/unified_malloc_framework/memoryPool.hpp @@ -255,8 +255,7 @@ TEST_P(umfPoolTest, multiThreadedMallocFreeRandomSizes) { // TODO: add similar tests for realloc/aligned_alloc, etc. // TODO: add multithreaded tests TEST_P(umfMultiPoolTest, memoryTracking) { - static constexpr int allocSizes[] = {1, 2, 4, 8, 16, 20, - 32, 40, 64, 128, 1024, 4096}; + static constexpr int allocSizes[] = {8, 16, 32, 40, 64, 128, 1024, 4096}; static constexpr auto nAllocs = 256; std::mt19937_64 g(0);