[petsc-dev] Using multiple mallocs with PETSc

Richard Mills richardtmills at gmail.com
Mon Mar 13 13:41:40 CDT 2017


On Mon, Mar 13, 2017 at 11:27 AM, Jed Brown <jed at jedbrown.org> wrote:

> Satish Balay <balay at mcs.anl.gov> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20170313/a7ff47e6/attachment.html>


More information about the petsc-dev mailing list