Skip to content

Commit

Permalink
Merge pull request #750 from igchor/fix_alloc_sizes
Browse files Browse the repository at this point in the history
[umf] use alloc sizes that are multiples of 8 in tests
  • Loading branch information
igchor committed Jul 27, 2023
2 parents e73389f + 53c8cb4 commit 8e9f3ff
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/unified_malloc_framework/memoryPool.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8e9f3ff

Please sign in to comment.