Skip to main content

set_muzzy_decay

Function set_muzzy_decay 

pub fn set_muzzy_decay(decay_ms: isize) -> Result<isize, Error>
Expand description

Sets the calling thread arena’s muzzy-page decay interval.

Every write marks all unused muzzy pages fully decayed and immediately purges them unless the value is -1. The previous interval is returned. A value of 0 otherwise requests immediate decay, while -1 disables it.

§Errors

Returns an error if the thread arena cannot be read or jemalloc rejects the value.