ax-alloc 0.9.2

ArceOS global memory allocator
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# ax-alloc

ArceOS global memory allocator. Provides [`GlobalAllocator`] implementing [`core::alloc::GlobalAlloc`] for use with `#[global_allocator]`.

The current backends are selected by feature: `tlsf` uses the `rlsf` crate, and
`buddy-slab` uses `buddy-slab-allocator` with per-CPU slab support.

## Features

- `tlsf` – TLSF byte and page allocation backed by `rlsf`
- `buddy-slab` – buddy page allocation plus per-CPU slab allocation
- `global-allocator` – register the selected backend as `#[global_allocator]`
- `tracking` – allocation tracking (requires `ax-percpu`, `axbacktrace`)

## License

GPL-3.0-or-later OR Apache-2.0 OR MulanPSL-2.0