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: [PATCH] calloc should not duplicate malloc logic.


On 03/05/2014 12:19 PM, OndÅej BÃlka wrote:
> On Mon, Mar 03, 2014 at 12:31:55PM -0500, Carlos O'Donell wrote:
>> On 03/03/2014 01:02 AM, Will Newton wrote:
>>>> A faster way would be additionally apply following. There are three
>>>> parts covered, first one is locking and libc_malloc has almost identical
>>>> code as this. Second is mmap that I for some reason forgotten. Third
>>>> part is optimizing memset which should go away as it contains
>>>> assumptions that will be broken, like that chunk is old multiple of 8.
>>>>
>>>>         * malloc/malloc.c ( __libc_calloc): Add back mmaped memory
>>>>         handling.
>>>
>>> My personal feeling is that the original patch did not meet the
>>> requirements of consensus and should be reverted on that basis, rather
>>> than continuing to patch up the results.
>>
>> Given the objections I've reverted the calloc simplification.
>>
>> I tested the reverted code works correctly on x86-64.
>>  
> OK, I will send a patch so you could review mostly same change again.
> 

Thanks. I look forward to it. You're doing great work here, but you
need to rely on community review and incorporate comments made by
others.

Cheers,
Carlos.


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