improving malloc

Ondřej Bílka neleai@seznam.cz
Sat Jan 5 16:38:00 GMT 2013


On Sat, Jan 05, 2013 at 04:13:34PM +0000, Joseph S. Myers wrote:
> 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).
> 
posix_memalign is not required by ISO C. One possibility is use use it
as way to get less another data. Second is not support it and update manpage 
that posix_memalign is 16byte aligned not just 8.

> -- 
> Joseph S. Myers
> joseph@codesourcery.com


-- 

PEBKAC (Problem Exists Between Keyboard And Chair)



More information about the Libc-alpha mailing list