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 v1] malloc: fix set_max_fast "impossibly small" value


On 10/31/19 12:56 PM, Joseph Myers wrote:
> On Wed, 30 Oct 2019, Carlos O'Donell wrote:
> 
>> Which on i386 is overriden here:
>> sysdeps/i386/malloc-alignment.h:
>>  22 #define MALLOC_ALIGNMENT 16
>>
>> This is because we have to account for 16-byte aligned vector types.
> 
> Rather, to account for 16-byte-aligned _Float128 and _Decimal128.  Vector 
> types are expected to require aligned_alloc, but any type that's a basic 
> type as defined in ISO C has a fundamental alignment and so malloc must 
> allocate memory suitably aligned for it.

Thanks for the clarification.

-- 
Cheers,
Carlos.


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