IHostMalloc Interface

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

Method

Description

IHostMAlloc::Alloc Method

Requests that the host allocate the requested amount of memory from the heap.

IHostMAlloc::DebugAlloc Method

Requests that the host allocate the requested amount of memory from the heap, and additionally track where the memory was allocated.

IHostMAlloc::Free Method

Frees 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 .NET Framework System Requirements.

Header: MSCorEE.h

Library: Included as a resource in MSCorEE.dll

.NET Framework Versions: 4.5, 4, 3.5 SP1, 3.5, 3.0 SP1, 3.0, 2.0 SP1, 2.0

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft