ended3월 22일· 4 sources
Observing Malloc - Phase 0 Mini Malloc
malloc 관찰하기 - Phase 0: 미니 메모리 할당기
Why it matters
The author documents their journey of building a custom memory allocator (mini malloc) by first observing how malloc works at the systems level using strace and C programs. They explore how the kernel manages memory through brk (heap extension) and mmap (shared library mapping), and explain the relationship between the kernel's program break boundary and glibc's heap abstractions.
4
Sources
+0
24h
—
Growth
178d
Active
block_metabrkbump allocatorcoalescingexternal fragmentationglibcld_preloadmallocmemory allocatormini mallocmini-mallocmmapmmap_thresholdmunmapsbrkstrace