Date: Thu, 8 May 2014 10:25:08 -0400 From: Rich Felker <dalias@...c.org> To: musl@...ts.openwall.com Subject: Re: [PATCH] add definition of max_align_t to stddef.h On Thu, May 08, 2014 at 02:07:20PM +0200, Luca Barbato wrote: > >> That's the part that is annoying, the larger register is 32byte in those > >> platforms. > > > > And it will keep getting larger. Obviously changing the definition of > > types and/or the ABI again and again is not the solution. The solution > > is requesting the alignment you want. > > No, but having the correct value for new architectures would be sort of > more correct. Is not that those won't be used. I'm not sure what you mean by "the correct value". The definition with the union should give the correct value (max alignment requirement of any standard type) for all archs. > > In any case, the overhead would be undesirable. If/when I make some > > improvements to malloc and its strategy for returning memory for use > > by other processes (freeing commit charge), I'm also hoping to drop > > the granularity on 64-bit platforms from 32 down to 16 or maybe even > > smaller. There's really no need to store a size_t in the headers for > > chunks which are only used for allocation sizes up to 128k/256k. > > I see, nice to know that's the plan =) As said it would had been a nice > to have if it comes for free. Yeah, not much comes for free though... Rich
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.