ICorProfilerInfo::GetILFunctionBodyAllocator Method
Gets an interface that provides a method to allocate memory to be used for swapping out the body of a method in Microsoft intermediate language (MSIL) code.
HRESULT GetILFunctionBodyAllocator(
[in] ModuleID moduleId,
[out] IMethodMalloc **ppMalloc);
Parameters
moduleId
[in] The ID of the module in which the method resides.ppMalloc
[out] A pointer to an IMethodMalloc interface that provides a method to allocate the memory.
Remarks
A method body in MSIL code must be located as a relative virtual address (RVA), relative to the loaded module, which means that it follows the module within 4 GB. To make it easier for a tool to swap out the body of a method, the GetILFunctionBodyAllocator method ensures that memory is allocated within that range.
Requirements
Platforms: See .NET Framework System Requirements.
Header: CorProf.idl, CorProf.h
Library: CorGuids.lib
.NET Framework Versions: 4, 3.5 SP1, 3.5, 3.0 SP1, 3.0, 2.0 SP1, 2.0