Virtual memory management implementation advice

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
vhg119
Member
Member
Posts: 71
Joined: Fri Aug 24, 2007 5:56 pm
Location: CA, USA

Post by vhg119 »

JamesM wrote:Understood, I'll add that on monday.

The heap index is statically allocated. The current virtual memory set aside for it is 0x20000 bytes, which at 4 bytes per item, gives 32768 possible holes. Which I think is sufficient. You may disagree.

The heap index is an array of pointers to 'hole' structures. That is shown on the topmost diagram on the page. Maybe I should make that a little clearer ;)
It's actually pretty clear that the index is an array of pointers. What I didn't realize was that it was 0x20000 bytes long. And the image doesn't show that there are multiple entries for the same size holes. Now it all makes sense.

I think I may be dumber than the average osdever here.
User avatar
JamesM
Member
Member
Posts: 2935
Joined: Tue Jul 10, 2007 5:27 am
Location: York, United Kingdom
Contact:

Post by JamesM »

I may be the dumbest osdever here
I seriously doubt that! Thanks for looking at it and I'll update it monday.
Post Reply