Partilhar via


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.

interface IMethodMalloc : IUnknown {
        
    PVOID Alloc (
        [in] ULONG   cb
    );
}

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: Windows 2000, Windows XP, Windows Server 2003 family

Header: CorProf.idl

Library: CorGuids.lib

.NET Framework Version: 2.0

See Also

Other Resources

Profiling Interfaces