pub fn set_memory_limit(limit: usize) -> Result<usize>
Set the process-global memory limit in bytes and return its previous value.
The new limit affects all threads and evaluations.