xallocator

Fixed block replacement for malloc/free and new/delete in C++: no heap fragmentation, constant-time allocation.

Author
David Lafreniere
Website
https://github.com/endurodave/xallocator
Category
Data Processing
License
MIT
Library Type
Contributed
Architectures
Any

xmalloc, xfree, xrealloc and xcalloc hand out power-of-two blocks kept for reuse, and the XALLOCATOR macro routes a class's new/delete to them. Thread-safe with std::mutex or, through build options, FreeRTOS, ThreadX, Zephyr and CMSIS-RTOS2 locks. Built on the Allocator library. Needs the C++ standard library (not 8-bit AVR).

Downloads

Filename Release Date File Size
xallocator-1.3.0.zip 2026-11-15 38.68 KiB