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 v3] PowerPC: libc single-thread lock optimization


Florian Weimer <fweimer@redhat.com> writes:

> On 03/11/2016 07:35 PM, Tulio Magno Quites Machado Filho wrote:
>> diff --git a/malloc/malloc.c b/malloc/malloc.c
>> index b8a43bf..1eed794 100644
>> --- a/malloc/malloc.c
>> +++ b/malloc/malloc.c
>> @@ -4150,7 +4150,7 @@ static void malloc_consolidate(mstate av)
>>      maxfb = &fastbin (av, NFASTBINS - 1);
>>      fb = &fastbin (av, 0);
>>      do {
>> -      p = atomic_exchange_acq (fb, 0);
>> +      p = atomic_exchange_acq (fb, NULL);
>>        if (p != 0) {
>>  	do {
>>  	  check_inuse_chunk(av, p);
>
> This should go in immediately and separately, it is independent of  the
> rest of the patch.

Makes sense.
I pushed this hunk as commit b43f552a.

Thanks!

-- 
Tulio Magno


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