A03 — Multi-threaded malloc: Arena Contention and Per-thread Arena
A03 — Multi-threaded malloc: Arena Contention and Per-thread Arena Key Insight: In multi-threaded scenarios, every malloc is a potential contention point. ptmalloc uses arenas to solve this problem. The Problem with Multi-threaded malloc In single-threaded programs, malloc contention is rare (only one heap). But in multi-threaded programs, all threads share the same heap. Without special... » read more