summaryrefslogtreecommitdiffstats
path: root/debian/patches/d-0005-no-jemalloc.patch
blob: 1223fce8b4a79315709fa56d83dc58119b4b1c41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
From: Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
Date: Sat, 2 Oct 2021 01:08:00 +0100
Subject: d-0005-no-jemalloc

---
 compiler/rustc/Cargo.toml                         | 6 ------
 src/tools/rust-analyzer/crates/profile/Cargo.toml | 2 --
 2 files changed, 8 deletions(-)

Index: rust/compiler/rustc/Cargo.toml
===================================================================
--- rust.orig/compiler/rustc/Cargo.toml
+++ rust/compiler/rustc/Cargo.toml
@@ -14,13 +14,7 @@ rustc_codegen_ssa = { path = "../rustc_c
 # crate is intended to be used by stable MIR consumers, which are not in-tree
 rustc_smir = { path = "../rustc_smir" }
 
-[dependencies.jemalloc-sys]
-version = "0.5.0"
-optional = true
-features = ['unprefixed_malloc_on_supported_platforms']
-
 [features]
-jemalloc = ['jemalloc-sys']
 llvm = ['rustc_driver_impl/llvm']
 max_level_info = ['rustc_driver_impl/max_level_info']
 rustc_use_parallel_compiler = ['rustc_driver_impl/rustc_use_parallel_compiler']
Index: rust/src/tools/rust-analyzer/crates/profile/Cargo.toml
===================================================================
--- rust.orig/src/tools/rust-analyzer/crates/profile/Cargo.toml
+++ rust/src/tools/rust-analyzer/crates/profile/Cargo.toml
@@ -17,7 +17,6 @@ cfg-if = "1.0.0"
 libc = "0.2.135"
 la-arena = { version = "0.3.0", path = "../../lib/la-arena" }
 countme = { version = "3.0.1", features = ["enable"] }
-jemalloc-ctl = { version = "0.5.0", package = "tikv-jemalloc-ctl", optional = true }
 
 [target.'cfg(target_os = "linux")'.dependencies]
 perf-event = "0.4.7"
@@ -27,7 +26,6 @@ winapi = { version = "0.3.9", features =
 
 [features]
 cpu_profiler = []
-jemalloc = ["jemalloc-ctl"]
 
 # Uncomment to enable for the whole crate graph
 # default = [ "cpu_profiler" ]