Allocators are Monkeys With Typewriters
Table of Contents
Introduction
Memory allocators
Buddy system
Allocation
Deallocation
Introduction
Recently I was looking at an issue on mimalloc, a "state-of-the-art" memory allocator developed by Microsoft. The issue was quite simple, developers wanted a way to preallocate a piece of memory and use it as mimalloc's heap. Seeing that mimalloc does not offer this feature, I thought:
"how hard can it be to write a memory allocator to manage a preallocated region?".
The answer to this question is:...
Read more at tgmatos.github.io