Skip to content

Commit 53c8cb4

Browse files
committed
[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.
1 parent e73389f commit 53c8cb4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/unified_malloc_framework/memoryPool.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,7 @@ TEST_P(umfPoolTest, multiThreadedMallocFreeRandomSizes) {
255255
// TODO: add similar tests for realloc/aligned_alloc, etc.
256256
// TODO: add multithreaded tests
257257
TEST_P(umfMultiPoolTest, memoryTracking) {
258-
static constexpr int allocSizes[] = {1, 2, 4, 8, 16, 20,
259-
32, 40, 64, 128, 1024, 4096};
258+
static constexpr int allocSizes[] = {8, 16, 32, 40, 64, 128, 1024, 4096};
260259
static constexpr auto nAllocs = 256;
261260

262261
std::mt19937_64 g(0);

0 commit comments

Comments
 (0)