This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: improving malloc
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: OndÅej BÃlka <neleai at seznam dot cz>
- Cc: <libc-alpha at sourceware dot org>
- Date: Sat, 5 Jan 2013 16:13:34 +0000
- Subject: Re: improving malloc
- References: <20130105090242.GA4490@domone.kolej.mff.cuni.cz>
On Sat, 5 Jan 2013, OndÅ~Yej BÃlka wrote:
> If we relax alignment guarante we can reduce memory consumption more
> by returning 8byte requests aligned only to 8 bytes.
All allocations are required by ISO C to be sufficiently aligned for any
standard type, including types larger than the size of the allocation (see
C90 DR#075).
--
Joseph S. Myers
joseph@codesourcery.com