mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-11 02:15:45 +02:00
Unify mimalloc memory management
This commit is contained in:
parent
09fb05c0e1
commit
92475dd47a
15 changed files with 43 additions and 21 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue