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, 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

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