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:05 PM, H.J. Lu <hjl.tools@gmail.com> wrote:
> 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.
>
ChangeLog should be
2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
* malloc/malloc.c (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.
--
H.J.
More information about the Libc-alpha
mailing list