Skip to content

Commit 9bd1647

Browse files
authored
Merge pull request #1722 from musicinmybrain/tikv
Depend on jemallocator as tikv-jemallocator, and update it to 0.6
2 parents efe499a + c4250ec commit 9bd1647

File tree

3 files changed

+29
-29
lines changed

3 files changed

+29
-29
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ libc = "0.2"
7070
# jemalloc is currently disabled on macOS due to a bug in jemalloc in combination with macOS
7171
# Catalina. See https://github.com/sharkdp/fd/issues/498 for details.
7272
[target.'cfg(all(not(windows), not(target_os = "android"), not(target_os = "macos"), not(target_os = "freebsd"), not(target_os = "openbsd"), not(all(target_env = "musl", target_pointer_width = "32")), not(target_arch = "riscv64")))'.dependencies]
73-
jemallocator = {version = "0.5.4", optional = true}
73+
tikv-jemallocator = {version = "0.6.0", optional = true}
7474

7575
[dev-dependencies]
7676
diff = "0.1"
@@ -84,7 +84,7 @@ strip = true
8484
codegen-units = 1
8585

8686
[features]
87-
use-jemalloc = ["jemallocator"]
87+
use-jemalloc = ["tikv-jemallocator"]
8888
completions = ["clap_complete"]
8989
base = ["use-jemalloc"]
9090
default = ["use-jemalloc", "completions"]

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ use crate::regex_helper::{pattern_has_uppercase_char, pattern_matches_strings_wi
4747
feature = "use-jemalloc"
4848
))]
4949
#[global_allocator]
50-
static ALLOC: jemallocator::Jemalloc = jemallocator::Jemalloc;
50+
static ALLOC: tikv_jemallocator::Jemalloc = tikv_jemallocator::Jemalloc;
5151

5252
// vivid --color-mode 8-bit generate molokai
5353
const DEFAULT_LS_COLORS: &str = "

0 commit comments

Comments
 (0)