This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [patch v1] malloc: fix set_max_fast "impossibly small" value
- From: Joseph Myers <joseph at codesourcery dot com>
- To: Carlos O'Donell <carlos at redhat dot com>
- Cc: DJ Delorie <dj at redhat dot com>, <libc-alpha at sourceware dot org>
- Date: Thu, 31 Oct 2019 16:56:53 +0000
- Subject: Re: [patch v1] malloc: fix set_max_fast "impossibly small" value
- Ironport-sdr: NncAN9PoFF27t13latPXm3fL/mhIUD8nXBTjEJZkyNQaanyGrnUUghoUw2HKNzNh0B/4xNQm2x /BRT4goWWw/AaBTAvE0IbQqo8jeBMqCf1bsEKFXWinfT/dpkZAatx0HZZfTCRY1n/GafoSSwir rVRLWbJgLA/4u5lhW9bKm+oUHZjyTWlOjKGnhi1Sw6uzUrhWsZ8rF/hzU72pP7EBGJOutM/aSq CvxQXuF52zVPPR0PsL3MWY5efS3clzh9ciDJ1XqdkaFXt5MDo0HX0+T9G7rXjISF6x2K0DrqYk N2I=
- Ironport-sdr: QC0L4t7D0CUHxXkAWkIY6AKA42r7klpvdHjBVCAnOcAQfPAfer+KjJK+vSLroSgICeAuSocD05 sSq0U8x53qAKPdwAxy0Iwy0HF8bNbVBbZmpTP6v7vbRgUsEtF8hLZWi1yXZGUU9+zapeHh1mwt r1o397fb8x8PuZv7y/dN60ZVI0CyEAW1y/27At7lDhcuPz9e2MsSgwL68HuHyChocTm90yBJTl E9lh9TqFNIkM6j3w3fOsrb3WRUuS+yWyEgCnc9g7yC0tJx2/ZEVYwmrGsEwmNxxDG13AYmKhUx J80=
- References: <xnr22tevec.fsf@greed.delorie.com> <c80aa002-7d86-0f72-db64-8e27441b4314@redhat.com>
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.
--
Joseph S. Myers
joseph@codesourcery.com