[PATCH] malloc: Use accessors for chunk metadata access

Carlos O'Donell carlos@redhat.com
Fri Oct 28 15:07:00 GMT 2016


On 10/28/2016 10:52 AM, Florian Weimer wrote:
>  /* check for chunk from non-main arena */
> -#define chunk_non_main_arena(p) ((p)->size & NON_MAIN_ARENA)
> +#define chunk_main_arena(p) (((p)->mchunk_size & NON_MAIN_ARENA) == 0)

Comment is wrong now :}

-- 
Cheers,
Carlos.



More information about the Libc-alpha mailing list