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.
Methods
Method | Description |
---|---|
AcquiredVirtualAddressSpace Method | Notifies the host that the common language runtime (CLR) has acquired the specified memory from the operating system. |
CreateMAlloc Method | Gets an interface pointer to an IHostMAlloc instance that is used to request memory allocations from a heap created by the host. |
GetMemoryLoad Method | Gets the amount of physical memory that is currently being used, as reported by the host. |
NeedsVirtualAddressSpace Method | Notifies the host that the CLR is going to attempt to use the specified memory. |
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. |
ReleasedVirtualAddressSpace Method | Notifies the host that the CLR has finished using the specified memory. |
VirtualAlloc Method | 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. |
VirtualFree Method | 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. |
VirtualProtect Method | 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. |
VirtualQuery Method | 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 System Requirements.
Header: MSCorEE.h
Library: Included as a resource in MSCorEE.dll
.NET Framework Versions: Available since 2.0
See also
Sodelujte z nami v storitvi GitHub
Vir za to vsebino najdete v storitvi GitHub, kjer lahko tudi ustvarite in pregledate težave in zahtevke za uveljavitev sprememb. Če želite več informacij, glejte naš vodnik za sodelavce.