Remade with Rust

rusty_alloc: pure-Rust memory allocator

Pure-Rust memory allocator — a mimalloc reimplementation with safer double-free behavior

Replaces: mimalloc / glibc malloc

What is rusty_alloc, the pure-Rust memory allocator?

rusty_alloc is a pure-Rust memory allocator. It is a mimalloc reimplementation with safer double-free behavior, and it replaces mimalloc and glibc malloc for processes that want that allocator in Rust.

What rusty_alloc replaces

rusty_alloc is a pure-Rust memory allocator. It reimplements mimalloc, and double-free behavior is safer than the C allocator it follows.

Why rusty_alloc is a pure-Rust memory allocator

What rusty_alloc keeps from mimalloc / glibc malloc

rusty_alloc keeps a general-purpose allocator as the job. mimalloc and glibc malloc are what it replaces. rusty_alloc_default is the small crate that installs it as the process global allocator.

Where rusty_alloc fits

rusty_alloc is the memory crate under the codecs and the game loop. The Learn article on frame spikes is the game-facing writeup of the same allocator.

Read more about rusty_alloc