[PATCH v3] PowerPC: libc single-thread lock optimization
Florian Weimer
fweimer@redhat.com
Fri Mar 11 18:39:00 GMT 2016
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
More information about the Libc-alpha
mailing list