Skip to content

Commit e8a6333

Browse files
committed
Switch to maintained version of jemallocator.
Switch to maintained version of jemallocator like rustc did in: rust-lang/rust#83152
1 parent 78cd7ef commit e8a6333

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ regex-syntax = "0.6.25"
2323
itoa = "1.0"
2424
ryu = "1.0"
2525
libc = "0.2"
26-
jemallocator = { version = "0.3", optional = true }
26+
tikv-jemallocator = { version = "0.4", optional = true }
2727
rand = "0.8.4"
2828
lalrpop-util = "0.19.6"
2929
unicode-xid = "0.2.2"
@@ -55,7 +55,7 @@ tempfile = "3.3"
5555

5656
[features]
5757
default = ["use_jemalloc", "allow_avx2", "llvm_backend", "unstable"]
58-
use_jemalloc = ["jemallocator"]
58+
use_jemalloc = ["tikv-jemallocator"]
5959
# Certain features leverage the AVX2 instruction set, but AVX2 can often make
6060
# the entire application slightly slower, even on chips that support it. For
6161
# those cases, consider disabling allow_avx2.

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ use std::mem;
5252

5353
#[cfg(feature = "use_jemalloc")]
5454
#[global_allocator]
55-
static ALLOC: jemallocator::Jemalloc = jemallocator::Jemalloc;
55+
static ALLOC: tikv_jemallocator::Jemalloc = tikv_jemallocator::Jemalloc;
5656

5757
macro_rules! fail {
5858
($($t:tt)*) => {{

0 commit comments

Comments
 (0)