This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]