The story’s score and claims

Comments on No. 10 of 96 · gee.cs.oswego.edu · edition of Friday 27 November 2026

Doug Lea's Malloc

Summary

Doug Lea's page explains dlmalloc, the public-domain C allocator he began in 1987, which he says is the default malloc in some Linux versions. It combines boundary tags for coalescing with best-fit search over 128 size-ordered bins, plus locality, wilderness, mmap (default 1MB threshold) and small-chunk caching heuristics. Minimum chunks of 16 bytes (32-bit) or 24 bytes (64-bit) mean programs with many tiny nodes may need custom allocators. The page dates from 2000, Lea calls it out of date, and its claims are unverified.

Comments

Ranked by a public rubric, not by votes: what a comment adds counts, not who wrote it. How comments are ranked · Comment rules