IMethodMalloc Interface

Provides a method to allocate memory for a new Microsoft intermediate language (MSIL) 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

IMethodMalloc::Alloc Method

Attempts to allocate a specified amount of memory for a new MSIL 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 .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

See Also

Other Resources

Profiling Interfaces