c-raii uses Resource Acquisition Is Initialization or RAII, it is MIT licensed, it can be new system allocator for Haiku, fixing this ticket: #13554 (Switch system allocator) – Haiku
It is about RAII, something that has been available in C++ since the invention of the language (it is just a complicated way to say there are destructors, and they are called when the objects are deleted). Since Haiku uses C++, we don’t need to reimplement this in C.
Yes, it caused applications to run out of memory more quickly than with the current allocator, especially on 32 bit systems. And that was after we had the developers fix various other problems with it.
It uses a customized part of rpmalloc and other parts implemented with RAII. The code has major differences from the original rpmalloc, it is focused on several architectures and can be compiled on simple and old compilers.
Do the problems of the original rpmalloc version continue in this fork?