[Bug malloc/11087] mallinfo miscounting hblks because of missing mutex

stef.van-vlierberghe at telenet dot be sourceware-bugzilla@sourceware.org
Sun Oct 20 15:44:00 GMT 2013


https://sourceware.org/bugzilla/show_bug.cgi?id=11087

--- Comment #5 from stef van vlierberghe <stef.van-vlierberghe at telenet dot be> ---
Indeed, thanks for the comment.

But I'm not the one to be convinced, and have lost interest, replaced glibc
malloc by tcmalloc more than a year ago. It does not have the mallinfo issue,
provides good tracability. Allows us to use mallinfo-style interface and
collect correct stats in memory (no log file issues), allocates more
efficiently (especially the small blocks), and is faster. 

It also provides a design that allows malloc/free callers providing the size
and alignment requirements of the block to be allocated/freed (often these are
static values, so free is only wasting time by re-evaluating these arguments
based on stored information). The glibc design was great when nobody could
trust callers to provide correct values, but luckily this is no longer an issue
in many cases/ environments.

Maybe glibc will eventually catch up.

-- 
You are receiving this mail because:
You are on the CC list for the bug.



More information about the Glibc-bugs mailing list