diff --git a/src/memory/wrapper.h b/src/memory/wrapper.h index 42cdfee..f0a20d0 100755 --- a/src/memory/wrapper.h +++ b/src/memory/wrapper.h @@ -69,8 +69,8 @@ public: master_allocs_.emplace(std::move(alc)); } else const_cast(*it).swap(alc); - if (master_allocs_.size() <= 32) return; - take_first_do([](alloc_policy &) {}); // erase first + // if (master_allocs_.size() <= 32) return; + // take_first_do([](alloc_policy &) {}); // erase first } constexpr static auto try_replenish(alloc_policy&, std::size_t) noexcept {} diff --git a/test/test_mem.cpp b/test/test_mem.cpp index 733701a..e82007f 100755 --- a/test/test_mem.cpp +++ b/test/test_mem.cpp @@ -33,13 +33,13 @@ private slots: #include "test_mem.moc" -// constexpr int DataMin = 4; -// constexpr int DataMax = 256; -// constexpr int LoopCount = 4194304; +constexpr int DataMin = 4; +constexpr int DataMax = 256; +constexpr int LoopCount = 4194304; -constexpr int DataMin = 256; -constexpr int DataMax = 512; -constexpr int LoopCount = 2097152; +// constexpr int DataMin = 256; +// constexpr int DataMax = 512; +// constexpr int LoopCount = 2097152; std::vector sizes__;