Skip to content

Commit aaea1ac

Browse files
committed
Immediate jemalloc page purge
1 parent fd127a3 commit aaea1ac

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/bootstrap/src/core/build_steps/compile.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1207,6 +1207,12 @@ pub fn rustc_cargo_env(
12071207
rustc_llvm_env(builder, cargo, target)
12081208
}
12091209
}
1210+
if builder.config.jemalloc {
1211+
cargo.env(
1212+
"JEMALLOC_SYS_WITH_MALLOC_CONF",
1213+
"dirty_decay_ms:0,muzzy_decay_ms:0,abort_conf:true",
1214+
);
1215+
}
12101216
}
12111217

12121218
/// Pass down configuration from the LLVM build into the build of

0 commit comments

Comments
 (0)