#include <revolution/mem.h> BOOL MEMUseMarginOfAlignmentForExpHeap( MEMHeapHandle heap, BOOL reuse );
| heap | Expanded heap handle |
| reuse | TRUE to reuse the small memory fragments produced by alignment.FALSE to not reuse. (Default is FALSE.)
|
Returns the settings before the function was executed.
Sets whether to reuse, as valid memory, the small memory fragments produced when memory was allocated after setting alignment with the MEMAllocFromExpHeapEx function.
Be aware that if this setting is set to valid (TRUE) and a large amount of memory fragments are registered, performance may decrease drastically. Use of this function is recommended only when you are sure you will not be allocating a great number of relatively small partitioned heaps or aligned memory spaces.
By default this is set to FALSE.
2007/08/10 Initial version.
CONFIDENTIAL