jemallocator 0.5.4

A Rust allocator backed by jemalloc
Documentation
1
2
3
4
5
6
7
8
9
10
use jemallocator::Jemalloc;

#[global_allocator]
static A: Jemalloc = Jemalloc;

#[test]
fn smoke() {
    let a = Box::new(3_u32);
    assert!(unsafe { jemallocator::usable_size(&*a) } >= 4);
}