[PATCH] Use size_t for mallinfo fields.

Martin Liška mliska@suse.cz
Wed Jul 8 07:25:32 GMT 2020


On 7/7/20 4:36 PM, Florian Weimer wrote:
> * Andreas Schwab:
> 
>> On Jul 07 2020, Florian Weimer wrote:
>>
>>> If what I wrote above is right (we'd first gather consensus around
>>> that), we should probably add struct mallinfo2 and mallinfo2, deprecate
>>> the original mallinfo function, and eventually remove them from the
>>> public API (turning the original mallinfo into a compatibility symbol).
>>
>> Isn't mallinfo obsoleted by malloc_info anyway?
> 
> None of the malloc alternatives seem to have picked it up.
> 
> Martin, why do you want to change mallinfo, rather than switching to
> malloc_info?

We use it in the GCC to inform about current memory usage (it's handy for LTO debugging).

If I see correctly, for malloc_info, one would have to parse a XML output..

Martin

> 
> Thanks,
> Florian
> 



More information about the Libc-alpha mailing list