pub fn clean_memory(start: *const (), len: usize)
Available on crate feature
client_requests_defs
only.Expand description
Clean memory state
This makes Helgrind forget everything it knew about the specified memory range. Effectively this announces that the specified memory range now “belongs” to the calling thread, so that: (1) the calling thread can access it safely without synchronisation, and (2) all other threads must sync with this one to access it safely.
This is particularly useful for memory allocators that wish to recycle memory.