9/34
Part 2 of 7 · The free listWatch
Watch · 4 min

Berkeley's CS 61C on how malloc works. It walks the free list and returns null when nothing fits from 3:45, a freed block should merge with its free neighbors from 4:11, and best fit, first fit and next fit from 5:52. His slivers are this part's leftover runs.

[CS61C FA20] Lecture 05.4 - C Memory Management: Memory Management · CS 61C Departmental · Jan 2023YouTube