IHostMemoryManager Interface

 

Provides methods that allow the common language runtime (CLR) to make virtual memory requests through the host, instead of using the standard Win32 virtual memory functions.

MethodDescription
AcquiredVirtualAddressSpace MethodNotifies the host that the common language runtime (CLR) has acquired the specified memory from the operating system.
CreateMAlloc MethodGets an interface pointer to an IHostMAlloc instance that is used to request memory allocations from a heap created by the host.
GetMemoryLoad MethodGets the amount of physical memory that is currently being used, as reported by the host.
NeedsVirtualAddressSpace MethodNotifies the host that the CLR is going to attempt to use the specified memory.
RegisterMemoryNotificationCallback MethodRegisters a pointer to a callback function that the host invokes to notify the CLR of the current memory load on the computer.
ReleasedVirtualAddressSpace MethodNotifies the host that the CLR has finished using the specified memory.
VirtualAlloc MethodServes as a logical wrapper for the corresponding Win32 function, which reserves or commits a region of pages in the virtual address space of the calling process.
VirtualFree MethodServes as a logical wrapper for the corresponding Win32 function, which releases, decommits, or releases and decommits a region of pages within the virtual address space of the calling process.
VirtualProtect MethodServes as a logical wrapper for the corresponding Win32 function, which changes the protection on a region of committed pages in the virtual address space of the calling process.
VirtualQuery MethodServes as a logical wrapper for the corresponding Win32 function, which retrieves information about a range of pages in the virtual address space of the calling process.

IHostMemoryManager also provides methods for the CLR to obtain a pointer through which to make memory requests on the heap and to get the level of memory pressure in the process, as reported by the host.

Platforms: See System Requirements.

Header: MSCorEE.h

Library: Included as a resource in MSCorEE.dll

.NET Framework Versions: Available since 2.0

IHostMalloc Interface
Hosting Interfaces

Show: