mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 17:24:06 +00:00
rustc: disable jemalloc's time-delayed purging to remove ASLR-like effects.
This commit is contained in:
parent
07c7ba7205
commit
a10f0d2c5d
@ -56,6 +56,12 @@ fn main() {
|
||||
#[used]
|
||||
static _F7: unsafe extern "C" fn() = _rjem_je_zone_register;
|
||||
}
|
||||
|
||||
// HACK(eddyb) disable time-delayed purging to remove the main (only?)
|
||||
// source of non-determinism in `jemalloc`.
|
||||
#[used]
|
||||
#[export_name = "malloc_conf"]
|
||||
static MALLOC_CONF: &'static [u8; 34] = b"dirty_decay_ms:0,muzzy_decay_ms:0\0";
|
||||
}
|
||||
|
||||
rustc_driver::set_sigpipe_handler();
|
||||
|
Loading…
Reference in New Issue
Block a user