Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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.
Methods
Method |
Description |
---|---|
Notifies the host that the common language runtime (CLR) has acquired the specified memory from the operating system. |
|
Gets an interface pointer to an IHostMAlloc instance that is used to request memory allocations from a heap created by the host. |
|
Gets the amount of physical memory that is currently being used, as reported by the host. |
|
Notifies the host that the CLR is going to attempt to use the specified memory. |
|
IHostMemoryManager::RegisterMemoryNotificationCallback Method |
Registers a pointer to a callback function that the host invokes to notify the CLR of the current memory load on the computer. |
Notifies the host that the CLR has finished using the specified memory. |
|
Serves 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. |
|
Serves 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. |
|
Serves 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. |
|
Serves 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. |
Remarks
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.
Requirements
Platforms: See .NET Framework System Requirements.
Header: MSCorEE.h
Library: Included as a resource in MSCorEE.dll
.NET Framework Versions: 4, 3.5 SP1, 3.5, 3.0 SP1, 3.0, 2.0 SP1, 2.0