Skip to content

Commit 5a978b1

Browse files
committed
build(deps): restrict jemallocator to non-msvc targets
1 parent 80e0310 commit 5a978b1

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

Cargo.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ rayon = "1.11"
3434
arrow = "53.0"
3535
prost = "0.13"
3636
prost-types = "0.13"
37-
tikv-jemallocator = "0.6"
37+
3838
# Serialization
3939
serde = { version = "1.0", features = ["derive"] }
4040
serde_json = "1.0"
@@ -88,5 +88,8 @@ panic = "abort"
8888
opt-level = 3
8989
strip = true
9090

91+
[target.'cfg(not(target_env = "msvc"))'.dependencies]
92+
tikv-jemallocator = "0.6"
93+
9194
[features]
9295
default = []

tests/runtime_lifecycle_repro_test.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@
5757
//!
5858
//! * `repro_short` — quick smoke test, 50 iterations.
5959
//! * `repro_long` — full bench-scale volume, ITERATIONS_LONG cycles,
60-
//! ignored by default so it doesn't slow the test
61-
//! suite. Run explicitly with:
60+
//! ignored by default so it doesn't slow the test
61+
//! suite. Run explicitly with:
6262
//!
6363
//! cargo test --test runtime_lifecycle_repro_test -- \
6464
//! --ignored --nocapture --test-threads=1
@@ -172,7 +172,7 @@ fn run_with_outer_runtime(iterations: usize) {
172172

173173
// Use the outer runtime once for symmetry with the bench's initial
174174
// `rt.block_on` (which fetches the schema for the bench setup).
175-
let _ = outer_rt.block_on(async { tokio::task::yield_now().await });
175+
outer_rt.block_on(async { tokio::task::yield_now().await });
176176

177177
for i in 0..iterations {
178178
if i % 50 == 0 {

0 commit comments

Comments
 (0)