3 ms·
Or, wonder why the heck do I have to read 8k lines to understand how memory allocation works, … glibc isn't exactly known for having readable code. There are
by panic 9y ago
Or, wonder why the heck do I have to read 8k lines to understand how memory allocation works, …
glibc isn't exactly known for having readable code. There are other libc implementations with more of a focus on simplicity. The malloc in musl libc, for example, is only 533 lines long: https://git.musl-libc.org/cgit/musl/tree/src/malloc/malloc.c https://git.musl-libc.org/cgit/musl/tree/src/malloc/malloc.c