Allocating aligned memory blocks?

H. S. Teoh via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Dec 11 22:15:46 PST 2014


Hi all,

I'm working on a very large associative array implementation that stores
most of the data on disk, and I need to allocate a number of cache areas
for keeping "hot" disk pages in RAM. Is there a way to allocate GC
memory blocks in D that are guaranteed to fall on OS page boundaries? Or
should I just forget the GC and just use posix_memalign() manually?

Thanks!


T

-- 
If creativity is stifled by rigid discipline, then it is not true creativity.


More information about the Digitalmars-d-learn mailing list