# ax-alloc

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

Uses the [axallocator](https://docs.rs/axallocator) crate for the underlying byte and page allocators (TLSF, slab, buddy, bitmap).

## Features

- `tlsf` (default) – TLSF byte allocator
- `slab` – slab byte allocator
- `buddy` – buddy byte allocator
- `page-alloc-256m` (default), `page-alloc-4g`, `page-alloc-64g` – page allocator capacity
- `tracking` – allocation tracking (requires `ax-percpu`, `axbacktrace`)

## License

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