Yay for Clang
Yay for Clang
Posted Jan 27, 2026 11:44 UTC (Tue) by wahern (subscriber, #37304)In reply to: Yay for Clang by mchapman
Parent article: GNU C Library 2.43 released
musl does return memory to the kernel. See free at https://git.musl-libc.org/cgit/musl/tree/src/malloc/mallo... I haven't read closely enough to really understand the heuristics, or the general architecture for that matter, but off-the-cuff I'd guess it's pretty aggressive, but not stupid aggressive. It shouldn't be too difficult to explore. The code is incredibly short compared to ptmalloc, etc; not just free.c, but all of mallocng/.
