Advertisement

Windows 98/NT memory block headers...

Started by August 08, 2000 09:27 PM
-1 comments, last by codemonkey 24 years, 5 months ago
For those more in tuned with memory managment in windows: I am curious as to what type of memory managment Microsoft uses for Windows 98/NT. At the root allocating memory, how does windows manage this memory? For instance, some OS''s use a simple 16-byte memory header for each allocation... does this exist in microsoft''s world? The following curiousities exist in my brain: 1. How does windows keep track of previously free''d memory? 2. How does windows keep track of each memory block? Does the memory header reference the previous memory block? 3. Does this "header" store the size of the allocation? In some operating systems I know of, there is a 16-byte memory header for each block. So if you do a malloc() and you get the address 0x0043f013 you can back off 16 bytes to 0x0043f003 I can find a memory header. That header may contain { PREV_MEMORY_BLOCK, SIZE_OF_THIS_BLOCK, IS_BLOCK_FREED } or anything like this... I''d like to be able to read this block in, but don''t know 1) if it exists, 2) what the format may be. Thanks, CodeMonkey
CODE Monkey

This topic is closed to new replies.

Advertisement