On Mon, Mar 13, 2017 at 11:27 AM, Jed Brown <[email protected]> wrote:
> Satish Balay <[email protected]> writes: > > stash the metadata for each allocation (and pointers for corresponding > > free) in a hash table for all mallocs that we need to track? [this > > avoids the wasted 'space' in each alloc.] > > Sure, but this is just duplicating an implementation of malloc. > Or duplicating an implementation of a "debug" or "tracing" malloc, rather -- one that lets you check for freeing pointers never malloc'ed, memory leaks, etc., since it tracks a bunch of information about each allocation. --Richard
