This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: improving malloc


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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]