What is malloc doing, anyway?(benmandrew.com)
242 points by benmandrew | 62 comments
A blog post explaining how glibc malloc works, using strace, brk/sbrk, and building a toy allocator with free lists, splitting, coalescing, and trimming.
1 story on the front page, newest first. Scroll down to watch the site change over time.
242 points by benmandrew | 62 comments
A blog post explaining how glibc malloc works, using strace, brk/sbrk, and building a toy allocator with free lists, splitting, coalescing, and trimming.