Price your future right. 60% off with code BLACKSCHOLES at USD checkout. Offer ends in 8d 09h 54m 33s8 days 9 hours 54 minutes 33 seconds.
Price your future right. 60% off with code BLACKSCHOLES at USD checkout. Offer ends in 8d 09h 54m 33s8 days 9 hours 54 minutes 33 seconds.

Sign in to watch this lesson
Memory Virtualization · 5:08
How malloc and free manage the heap: a free list stored inside the free memory itself, an 8-byte header that lets free() find a block's size from just a pointer, splitting and coalescing, and the best, worst, first and next fit policies racing on the same list. Then segregated lists, slabs and buddy allocation, the real size classes of this Mac's allocator measured with malloc_size(), and a fixed-size pool that beats malloc/free by about ten times for order objects.