Unify mimalloc memory management

This commit is contained in:
Roman Gershman 2022-03-09 21:27:36 +02:00
parent 09fb05c0e1
commit 92475dd47a
15 changed files with 43 additions and 21 deletions

View file

@ -4,8 +4,14 @@
#include "server/test_utils.h"
extern "C" {
#include "redis/zmalloc.h"
}
#include <absl/strings/match.h>
#include <absl/strings/str_split.h>
#include <mimalloc.h>
#include "base/logging.h"
#include "base/stl_util.h"
@ -54,6 +60,10 @@ BaseFamilyTest::BaseFamilyTest() {
BaseFamilyTest::~BaseFamilyTest() {
}
void BaseFamilyTest::SetUpTestSuite() {
init_zmalloc_threadlocal(mi_heap_get_backing());
}
void BaseFamilyTest::SetUp() {
pp_.reset(new uring::UringPool(16, num_threads_));
pp_->Run();