This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug malloc/11087] mallinfo miscounting hblks because of missing mutex
- From: "stef.van-vlierberghe at telenet dot be" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Sun, 20 Oct 2013 15:44:17 +0000
- Subject: [Bug malloc/11087] mallinfo miscounting hblks because of missing mutex
- Auto-submitted: auto-generated
- References: <bug-11087-131 at http dot sourceware dot org/bugzilla/>
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.