Skip to main content

limit_memory

Function limit_memory 

Source
pub fn limit_memory(bytes: u64) -> bool
Expand description

Limits the address space of this process (the preview child), so a file that needs more memory fails cleanly instead of taking the server host down. Linux and macOS; elsewhere (Windows) the limit is not enforced. Returns whether a limit is in force.