malloc cache/trace preview
Szabolcs Nagy
szabolcs.nagy@arm.com
Wed Feb 10 13:27:00 GMT 2016
On 10/02/16 12:48, Florian Weimer wrote:
> On 02/10/2016 01:29 PM, Szabolcs Nagy wrote:
>
>> i think the sbrk in the ctor of the trace tool is not ok,
>> if there are malloc calls using brk before that ctor.
>> (makes the malloc heap non-contiguous.)
>
> malloc has code to compensate for that. Does it work?
>
without looking into it, my guess is that the 'compensation'
has significant effect on malloc behaviour.
> We more or less have to support such use because we expose the sbrk
> interface. (Some mallocs complete avoid using sbrk by default.)
>
> Florian
>
More information about the Libc-alpha
mailing list