Memory management in 40 major C projects, a survey
Phil Eaton surveyed memory-management techniques across 40 C projects, finding a mix of explicit allocation, regions, reference counting, garbage collection, and scope-based cleanup.
Among the surveyed projects, PostgreSQL and nginx primarily use regions; CPython primarily uses reference counting; and Linux and QEMU also use compiler-assisted scope cleanup. The percentages count allocation call sites, not runtime allocations or bytes, so they shouldn’t be read as a runtime memory-use breakdown.