This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [patch] Fix mallinfo() to accumulate results for all arenas.
- From: Paul Pluzhnikov <ppluzhnikov at google dot com>
- To: Ulrich Drepper <drepper at gmail dot com>
- Cc: libc-alpha at sourceware dot org
- Date: Mon, 5 Sep 2011 14:43:22 -0700
- Subject: Re: [patch] Fix mallinfo() to accumulate results for all arenas.
- References: <20110823223856.E97B0190B0B@elbrus2.mtv.corp.google.com><CALoOobO-6-cvFH64Cv3OHYkUvoNSa2jLe0ZSD4bMox9Mv36Ocw@mail.gmail.com> <CAOPLpQc=Sk2v1XEdocuL+c5ByE4TDLVFaQmwo3JCmmqYKLCTFg@mail.gmail.com>
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