PATCH: Malloc fails if MALLOC_ALIGNMENT > 2 * SIZE_SZ
H.J. Lu
hjl.tools@gmail.com
Sat Aug 20 01:03:00 GMT 2011
On Fri, Aug 19, 2011 at 4:00 PM, Roland McGrath <roland@hack.frob.com> wrote:
>> I can't comment on powerpc32. Bit a target shouldn't define
>>
>> MALLOC_ALIGNMENT > 2 * SIZE_SZ
>>
>> if it will break binary compatibility.
>
> Well, AFAICT this patch as is does that for powerpc32 if -mlong-double-128
> is the norm. Hence my concern.
>
>
In that case, we don't change default MALLOC_ALIGNMENT
Thanks.
--
H.J.
---
2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
* malloc/malloc.c (MALLOC_ALIGNMENT): Use __alignof__ (long double).
(SMALLBIN_CORRECTION): New.
(MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
(largebin_index_32_big): New.
(largebin_index): Use it for 16-byte alignment.
(sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libc-pr12495-1b.patch
Type: text/x-diff
Size: 6077 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20110820/eb07740b/attachment.bin>
More information about the Libc-alpha
mailing list