next up previous contents index
Next: 28.2 Debugging versions of Up: 28.1 Introduction Previous: 28.1.2 Memdebug Library Internals

28.1.3 External Dependencies

The memdebug library uses several functions, and one global variable that it does not define. It uses panic for flagging internal consistency failures, and memset for wiping swaths of memory. The default implementation of memdebug_printf requires vprintf.

For memory allocation primitives, the memdebug library depends on memdebug_untraced_alloc and memdebug_untraced_free. As mentioned, the default versions of these depend on the initial system memory object as provided by whatever C library is in use. Additionally, calls to mem_lock and mem_unlock are used to protect accesses to memdebug's internal memory lists. These routines are described in more detail in the Memory Allocation section of the Minimal C Library chapter, Section 14.5.)



Utah Flux Research Group