This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: malloc cache/trace preview


On 02/10/2016 02:26 PM, Szabolcs Nagy wrote:
> 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.

Ah, that is true.  Good point.

Florian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]