Quantcast
Channel: The Old New Thing
Viewing all articles
Browse latest Browse all 24428

re: If you're going to write your own allocator, you need to respect the MEMORY_ALLOCATION_ALIGNMENT

$
0
0

@James:

(1) From Raymond's description, the list was a member of another structure so that wouldn't have worked anyway

(2) There's no requirement I can find at the page you linked or a couple I followed from there. All it says is that the SLIST_HEADER must be aligned at MEMORY_ALLOCATION_ALIGNMENT. _aligned_mallloc() is one way to achieve that (which is why they refer you to it) but it's by no means the only.


Viewing all articles
Browse latest Browse all 24428

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>