core.runtime.GC memory alignment

Peter Alexander peter.alexander.au at gmail.com
Sun Oct 27 09:19:27 PDT 2013


On Sunday, 27 October 2013 at 15:49:00 UTC, David Nadlinger wrote:
> What do we actually want to guarantee here? "Sufficient for any 
> built-in type"?

It should guarantee the same as what malloc guarantees IMO:

"The malloc() and calloc() functions return a pointer to the 
allocated memory that is suitably aligned for any kind of 
variable."

I see no reason to diverge from that.


More information about the Digitalmars-d mailing list