change global allocator and fix some services

This commit is contained in:
Jun Kurihara 2022-07-11 21:00:21 +09:00
commit 9f6b73a7c0
No known key found for this signature in database
GPG key ID: 48ADFD173ED22B03
3 changed files with 28 additions and 18 deletions

View file

@ -1,6 +1,6 @@
#[cfg(not(target_env = "msvc"))]
use mimalloc_rust::*;
#[global_allocator]
static GLOBAL: tikv_jemallocator::Jemalloc = tikv_jemallocator::Jemalloc;
static GLOBAL_MIMALLOC: GlobalMiMalloc = GlobalMiMalloc;
mod backend;
mod backend_opt;