mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-04-20 09:21:14 +03:00
Auto-detect whether running inside Valgrind.
Auto-detect whether running inside Valgrind, thus removing the need to manually specify MALLOC_CONF=valgrind:true.
This commit is contained in:
parent
3860eac170
commit
781fe75e0a
4 changed files with 31 additions and 30 deletions
|
|
@ -424,6 +424,7 @@ static const bool config_ivsalloc =
|
|||
VALGRIND_FREELIKE_BLOCK(ptr, rzsize); \
|
||||
} while (0)
|
||||
#else
|
||||
#define RUNNING_ON_VALGRIND ((unsigned)0)
|
||||
#define VALGRIND_MALLOCLIKE_BLOCK(addr, sizeB, rzB, is_zeroed)
|
||||
#define VALGRIND_RESIZEINPLACE_BLOCK(addr, oldSizeB, newSizeB, rzB)
|
||||
#define VALGRIND_FREELIKE_BLOCK(addr, rzB)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue