stumpalo 0.2.0

A fast, zero-dependency, memory efficient bump allocator with chunk reuse and scoped stack support
Documentation
1
2
3
4
5
6
7
8
9
use stumpalo::Arena;

#[test]
#[should_panic(expected = "OOM")]
fn oom_on_chunk_allocation() {
    let arena = Arena::new();
    let huge_len = isize::MAX as usize;
    let _: &mut [u8] = arena.alloc_slice_fill_with(huge_len, |_| 0u8);
}