IMethodMalloc Interface

Provides a method to allocate memory for a new common intermediate language (CIL) function body.

Note

The IMethodMalloc interface is a simple memory allocator. It allows you to allocate memory, but not to free it.

Methods

Method Description
Alloc Method Attempts to allocate a specified amount of memory for a new CIL function body.

Remarks

Each allocator is module-specific and ensures that the function body will be at a positive offset from the base of the module. Memory above the base of a module can be precious, so the allocator should be used to allocate memory only for a function body.

Requirements

Platforms: See System Requirements.

Header: CorProf.idl, CorProf.h

Library: CorGuids.lib

.NET Framework Versions: Available since 2.0

See also