This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: Malloc fails if MALLOC_ALIGNMENT > 2 * SIZE_SZ


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]