This is the mail archive of the libc-alpha@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]

Re: [patch] Fix mallinfo() to accumulate results for all arenas.


On Mon, Sep 5, 2011 at 10:17 AM, Ulrich Drepper <drepper@gmail.com> wrote:
> On Mon, Aug 29, 2011 at 11:32, Paul Pluzhnikov <ppluzhnikov@google.com> wrote:
>> Ping?
>
> Use malloc_info.

I don't have a FILE*, I am in context where stdio is not easily usable
(in signal handler), and I don't want to parse XML output; just the
raw data if you please.

> The old code never worked.

That would appear to be a rather weak argument to keep it broken. If
it can be fixed, let's fix it.

Is there anything in particular I should change to make the patch acceptable?

I've compared its output to the result of malloc_info(), and the
totals agree. AFAICT patched mallinfo() is computing the right
numbers.

Thanks,
-- 
Paul Pluzhnikov


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