Skip to content

Commit 8e9f3ff

Browse files
authored
Merge pull request #750 from igchor/fix_alloc_sizes
[umf] use alloc sizes that are multiples of 8 in tests
2 parents e73389f + 53c8cb4 commit 8e9f3ff

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)