We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 893fadd commit 8534cd7Copy full SHA for 8534cd7
compiler/rustc/src/main.rs
@@ -24,6 +24,12 @@ fn main() {
24
static _F5: unsafe extern "C" fn(*mut c_void, usize) -> *mut c_void = jemalloc_sys::realloc;
25
#[used]
26
static _F6: unsafe extern "C" fn(*mut c_void) = jemalloc_sys::free;
27
+
28
+ // HACK(eddyb) disable time-delayed purging to remove the main (only?)
29
+ // source of non-determinism in `jemalloc`.
30
+ #[used]
31
+ #[export_name = "malloc_conf"]
32
+ static MALLOC_CONF: &'static [u8; 34] = b"dirty_decay_ms:0,muzzy_decay_ms:0\0";
33
}
34
35
rustc_driver::set_sigpipe_handler();
0 commit comments