#allocator #mmap #memory #virtualalloc

nightly no-std mmap-alloc

A simple allocator backed by memory mappings

2 unstable releases

Uses old Rust 2015

0.2.0 Feb 9, 2018
0.1.0 Sep 3, 2017

#14 in #mmap

Download history 7/week @ 2021-08-15 20/week @ 2021-08-22 3/week @ 2021-08-29 4/week @ 2021-09-05 13/week @ 2021-09-12 10/week @ 2021-09-19 2/week @ 2021-09-26 5/week @ 2021-10-03 7/week @ 2021-10-10 7/week @ 2021-10-17 14/week @ 2021-10-24 13/week @ 2021-10-31 14/week @ 2021-11-07 18/week @ 2021-11-14 21/week @ 2021-11-21 31/week @ 2021-11-28

88 downloads per month
Used in 3 crates

Apache-2.0/MIT

71KB
1K SLoC

mmap-alloc

Crates.io Docs

An allocator that is backed by directly mapping memory pages.

The MapAlloc type defined by this crate implements the Alloc and ObjectAlloc traits by directly mapping memory pages from the kernel (mmap/munmap on POSIX systems and VirtualAlloc/VirtualFree on Windows). It also allows pages to be committed or uncommitted.

Dependencies

~110KB