[PATCH] Use size_t for mallinfo fields.
Martin Liška
mliska@suse.cz
Mon Jul 27 12:45:46 GMT 2020
On 7/27/20 2:21 PM, Florian Weimer wrote:
> * Martin Liška:
>
>> All right, I agree with that. So something like:
>>
>> enum malloc_info
>> {
>> ARENA_BYTES,
>> ...
>> };
>>
>> size_t get_mallinfo (malloc_info type) ?
>>
>> That would allow adding new enum values that can supported in the future.
>
> It does not allow to obtain a consistent snapshot of multiple values,
> though.
Good point!
So are we back to mallinfo2 which I suggested in patch?
Can you please make an opinion about it?
Thanks,
Martin
>
> Thanks,
> Florian
>
More information about the Libc-alpha
mailing list