UNIALLOC: A Retargetable Rust Memory Allocator

Build

$ cargo build

Test and Benchmarking

    1. Disable system-wide restartable-sequence
$ export GLIBC_TUNABLES=glibc.pthread.rseq=0
    1. Use unialloc as GlobalAllocator
use unialloc::UniAlloc;
#[global_allocator]
static OURSELF: UniAlloc = UniAlloc;

// more examples in unialloc/examples
    1. Unit tests
$ cargo test
    1. benchmarking
$ cargo bench --bench std_bench