Expand description
This is an incomplete implementation of mmap/munmap which is restricted in order to be implementable on top of the existing memory system. The point of these function as-written is to allow memory allocators written entirely in Rust to be executed by Miri. This implementation does not support other uses of mmap such as file mappings.
mmap/munmap behave a lot like alloc/dealloc, and for simple use they are exactly equivalent. That is the only part we support: no MAP_FIXED or MAP_SHARED or anything else that goes beyond a basic allocation API.