Videos: Memory Allocation

Playlist

slides: malloc.pdf

The C library’s malloc and free implementations build on the kernel-supplied allocation system calls to provide more efficient and convenient memory management to applications. We look at how allocation works with the goal of implementing out own allocator.

The allocator that we develop mostly follows the book, but some details are different—so that we end up with, for example, 16-byte alignment.