Re:Debugging Your Operating System: A Lesson in Memory Alloc...
by eridius on Friday December 09, 2016 @05:53PM
(#13142580)
The bug report wasn't caused by calloc, free, calloc being expensive. It was caused by making a call that did "malloc + memset" when only malloc was needed. The code in question wasn't even invoking calloc at all, it just ended up being an excuse to investigate zeroing memory behavior.
Incidentally, the blog post asks "why was the memory being actively zeroed at all?" but never actually answers it.
I've tracked down corner cases like this myself and been correctly told by developers that they're not worth fixing. But you don't know that a priori.