[patch] Fix mallinfo() to accumulate results for all arenas.
Paul Pluzhnikov
ppluzhnikov@google.com
Tue Sep 6 14:53:00 GMT 2011
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
More information about the Libc-alpha
mailing list