What's all this uncommitted, reserved memory in my process?

后端 未结 3 1641
故里飘歌
故里飘歌 2020-12-11 05:27

I\'m using VMMap from SysInternals to look at memory allocated by my Win32 C++ process on WinXP, and I see a bunch of allocations where portions of the allocated memory are

3条回答
  •  轮回少年
    2020-12-11 05:42

    Could they be the DLLs loaded into your process? DLLs (and the executable) are memory mapped into the process address space. I believe this initially just reserves space. The space is backed by the files themselves (at least initially) rather than the pagefile.

    Only the code that's actually touched gets paged in. If I understand the terminology correctly, that's when it's committed.

    You could confirm this by running your application in a debugger and looking at the modules that are loaded and comparing their locations and sizes to what you see in VMMap.

提交回复
热议问题