IHostMalloc Interface

 

Provides methods that allow the common language runtime (CLR) to request fine-grained allocations from the heap through the host.

MethodDescription
Alloc MethodRequests that the host allocate the requested amount of memory from the heap.
DebugAlloc MethodRequests that the host allocate the requested amount of memory from the heap, and additionally track where the memory was allocated.
Free MethodFrees memory that was allocated by using the Alloc method.

The CLR gets an interface pointer to an IHostMalloc instance by calling the IHostMemoryManager::CreateMalloc method.

Platforms: See System Requirements.

Header: MSCorEE.h

Library: Included as a resource in MSCorEE.dll

.NET Framework Versions: Available since 2.0

IHostMemoryManager Interface
Hosting Interfaces

Show: