Skip to content

Commit 93222a7

Browse files
committed
Fix build. Include tikv-jemalloc-sys with jemalloc so we can set up prof at compile time.
1 parent b753468 commit 93222a7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.cargo/config.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
#
44
# Provide `prof:true` to allow profiling, but `prof_active:false` to require
55
# profiling to be explicitly activated at runtime (possible via the BN HTTP API).
6-
JEMALLOC_SYS_WITH_MALLOC_CONF = "abort_conf:true,narenas:16,prof:true"
6+
JEMALLOC_SYS_WITH_MALLOC_CONF = "abort_conf:true,narenas:16,prof:true,prof_active:false"

common/malloc_utils/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ edition = { workspace = true }
66

77
[features]
88
mallinfo2 = []
9-
jemalloc = ["tikv-jemallocator", "tikv-jemalloc-ctl"]
10-
jemalloc-profiling = ["jemalloc", "tikv-jemallocator/profiling", "tikv-jemalloc-sys"]
9+
jemalloc = ["tikv-jemallocator", "tikv-jemalloc-ctl", "tikv-jemalloc-sys"]
10+
jemalloc-profiling = ["jemalloc", "tikv-jemallocator/profiling"]
1111

1212
[dependencies]
1313
libc = "0.2.79"

0 commit comments

Comments
 (0)