Blender V2.61 - r43446

Guarded memory(de)allocation

c-style guarded memory allocation

About the MEM module

MEM provides guarded malloc/calloc calls. All memory is enclosed by pads, to detect out-of-bound writes. All blocks are placed in a linked list, so they remain reachable at all times. There is no back-up in case the linked-list related data is lost.

Known issues with MEM

There are currently no known issues with MEM. Note that there is a second intern/ module with MEM_ prefix, for use in c++.

Dependencies

API Documentation

See MEM_guardedalloc.h