Skip to content

Commit 4d8d108

Browse files
authored
Upgrade jemalloc crate (#743)
1 parent 5696a63 commit 4d8d108

File tree

3 files changed

+24
-31
lines changed

3 files changed

+24
-31
lines changed

Cargo.lock

Lines changed: 21 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

librubyfmt/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ simplelog = "0.12"
1717
ruby-prism="1.7.0"
1818

1919
[target.'cfg(not(target_env = "msvc"))'.dependencies]
20-
jemallocator = { version = "0.3.0", features = ["disable_initial_exec_tls"], optional=true }
20+
tikv-jemallocator = { version = "0.6.1", features = ["disable_initial_exec_tls"], optional=true }
2121

2222
[target.'cfg(windows)'.dependencies]
2323
winapi = { version = "0.3", features = ["everything"] }
@@ -32,4 +32,4 @@ crate-type = ["staticlib", "rlib"]
3232

3333
[features]
3434
default = ["use_jemalloc"]
35-
use_jemalloc = ["jemallocator"]
35+
use_jemalloc = ["tikv-jemallocator"]

librubyfmt/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use std::str;
88

99
#[cfg(all(feature = "use_jemalloc", not(target_env = "msvc")))]
1010
#[global_allocator]
11-
static ALLOC: jemallocator::Jemalloc = jemallocator::Jemalloc;
11+
static ALLOC: tikv_jemallocator::Jemalloc = tikv_jemallocator::Jemalloc;
1212

1313
pub type RawStatus = i64;
1414

0 commit comments

Comments
 (0)