[PATCH] malloc: Use accessors for chunk metadata access

Florian Weimer fweimer@redhat.com
Fri Oct 28 20:39:00 GMT 2016


On 10/28/2016 05:07 PM, Carlos O'Donell wrote:
> 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 :}

Hmph.

I've taken the opportunity to adjust the chunk layout comment as well, 
in preparation for documenting where the encryption happens.

Florian

-------------- next part --------------
A non-text attachment was scrubbed...
Name: malloc-comment.patch
Type: text/x-patch
Size: 5655 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20161028/07ad853e/attachment.bin>


More information about the Libc-alpha mailing list