On VirtualAlloc's preferred addresses

  • Thread starter Thread starter MarcelPiNacy
  • Start date Start date
M

MarcelPiNacy

Guest
Hi!

I'm developing a low-level memory manager library for C++ and I would like to know how the VirtualAlloc* functions choose the addresses that they return.

In particular I'd like to know the following:

  • Does VirtualAlloc* return the lowest available address?
  • Is there a chance that a future call to VirtualAlloc* might return a lower address than the one returned by the first call to it in the entire program?
  • Does MEM_LARGE_PAGES alter the strategy by which addresses get chosen? Aside from the increase of the allocation granularity?

Any answers are greatly appreciated :)

Continue reading...
 
Back
Top