common: added a simple memory management wrapper/module
authorKrisztian Litkey <kli@iki.fi>
Fri, 6 Apr 2012 11:06:48 +0000 (14:06 +0300)
committerKrisztian Litkey <kli@iki.fi>
Fri, 6 Apr 2012 11:06:48 +0000 (14:06 +0300)
commitc48623e0f3b6197dddd12785053c05983b935dc7
tree620aea45dab8f131adea9554cc6edb08c88da265
parent6bb61d39d4910e3bfb09019426c3b6a8ced5707a
common: added a simple memory management wrapper/module

By default, it passes calls through to malloc et al. If run in
debugging mode (by setting the __MURPHY_MM_CONFIG=debug) the
module keeps track of memory allocations, and can be used to
detect and report memory leaks.

The same memory management module currently also provides a page-
based object pool implementation.
src/common/mm.c [new file with mode: 0644]
src/common/mm.h [new file with mode: 0644]