Jeffrey Walton wrote:
> > And glibc aligns malloc()
> > results to 8 bytes on most 32-bit platforms.
> 
> I believe the runtime is required to return a pointer aligned for the
> largest C type on the system. On x86 that's 16 bytes due to the xmm
> datatypes.

Right. The malloc() alignment on glibc/i386 was increased from 8 to 16
not too long ago:
https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=9b5c49ef97e63cc63f1ffa13baf771368105ebe2
https://sourceware.org/bugzilla/show_bug.cgi?id=21120

Bruno


Reply via email to