Memalloc
Memory allocator written in Rust. It implements std::alloc::Allocator
and std::alloc::GlobalAlloc
traits. All memory is requested from the kernel using mmap
syscalls. You can run the examples as follows:
cargo run --example standalone
cargo run --example global
cargo run --example buckets
cargo run --example aligned
Run the tests:
cargo test
Run with Miri:
cargo miri test
cargo miri run --example standalone
cargo miri run --example buckets
cargo miri run --example aligned
Global allocator example doesn't work with Miri, see ./examples/global.rs
.