]> git.ipfire.org Git - thirdparty/valgrind.git/commit
Use wrapper functions VG_(malloc) and friends consistently across the
authorFlorian Krohm <florian@eich-krohm.de>
Thu, 11 Sep 2014 21:19:17 +0000 (21:19 +0000)
committerFlorian Krohm <florian@eich-krohm.de>
Thu, 11 Sep 2014 21:19:17 +0000 (21:19 +0000)
commit3b95ad549a48338f7a21d0a4b973d195e97743d8
tree1cc34f1b564727f81ca0609227552d685831a00b
parent4754dd70f26a52e719b2a2e384d1a7b329715fb7
Use wrapper functions VG_(malloc) and friends consistently across the
board (instead of e.g. VG_(arena_malloc)(VG_AR_CORE,...). This change
also benefits static analysers. We can tell tools that VG_(malloc) allocates
and VG_(free) deallocates and that they are a pair. But we cannot do that for
arena_malloc/free.
Also provide a wrapper VG_(realloc_shrink).

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14517
15 files changed:
coregrind/m_coredump/coredump-elf.c
coregrind/m_errormgr.c
coregrind/m_gdbserver/m_gdbserver.c
coregrind/m_gdbserver/server.h
coregrind/m_libcproc.c
coregrind/m_main.c
coregrind/m_mallocfree.c
coregrind/m_scheduler/scheduler.c
coregrind/m_signals.c
coregrind/m_stacks.c
coregrind/m_syswrap/syswrap-darwin.c
coregrind/m_syswrap/syswrap-generic.c
coregrind/m_syswrap/syswrap-linux.c
coregrind/m_syswrap/syswrap-x86-linux.c
include/pub_tool_mallocfree.h