From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 56882 invoked by alias); 11 Mar 2016 18:39:01 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 56814 invoked by uid 89); 11 Mar 2016 18:39:00 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=singlethread, machado, Machado, Filho X-HELO: mx1.redhat.com Subject: Re: [PATCH v3] PowerPC: libc single-thread lock optimization To: Tulio Magno Quites Machado Filho References: <540080DF.6030205@linux.vnet.ibm.com> <1457721337-30897-1-git-send-email-tuliom@linux.vnet.ibm.com> Cc: libc-alpha@sourceware.org, adhemerval.zanella@linaro.org, munroesj@linux.vnet.ibm.com From: Florian Weimer Message-ID: <56E310BF.303@redhat.com> Date: Fri, 11 Mar 2016 18:39:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <1457721337-30897-1-git-send-email-tuliom@linux.vnet.ibm.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-SW-Source: 2016-03/txt/msg00346.txt.bz2 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. Thanks, Florian