This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug malloc/6527] [powerpc] Malloc alignment insufficient for PowerPC
- From: "joseph at codesourcery dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Fri, 07 Feb 2014 17:21:57 +0000
- Subject: [Bug malloc/6527] [powerpc] Malloc alignment insufficient for PowerPC
- Auto-submitted: auto-generated
- References: <bug-6527-131 at http dot sourceware dot org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=6527
--- Comment #6 from joseph at codesourcery dot com <joseph at codesourcery dot com> ---
I don't think malloc should try to provide alignment for vector types,
only C standard types and types from C standard extensions defined in a
way that makes them types for which malloc should provide alignment; other
functions such as aligned_alloc should be used when bigger alignment is
required. That leaves powerpc (long double) and 32-bit x86 (_Decimal128,
__float128 / future standard _Float128) as the only affected cases, I
think.
The most recently discussed suggestion for dealing with malloc_get_state /
malloc_set_state is that malloc_set_state should mark all previous
allocations as unfreeable (so attempts to free a previous allocation are
no-ops), limiting the amount malloc needs to do with the state generated
by malloc with different alignment.
--
You are receiving this mail because:
You are on the CC list for the bug.