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 |
---|---|
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 System Requirements.
Header: CorProf.idl, CorProf.h
Library: CorGuids.lib
.NET Framework Versions: Available since 2.0
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for