[petsc-dev] PetscMalloc for size zero

Jed Brown jed at jedbrown.org
Fri Jan 31 00:36:32 CST 2014


Barry Smith <bsmith at mcs.anl.gov> writes:
>   Note that currently when running optimized with valgrind; valgrind
>   only sees the one_big_malloc so can miss lots of overwrite and
>   underwrites within the chunks malloced. By making everything runtime
>   we can let valgrind have more information and manage correctness of
>   each sub chunk.

I agree that it's good to defer as much as possible to runtime.  I
sorely wish I knew of a good way to implement a -debug option (short of
LD_PRELOADing the debug library).

I'm not happy about Matt's increasingly complicated macros, but I'm not
going to fight it any more.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20140130/98282562/attachment.sig>


More information about the petsc-dev mailing list