view src/memdebug.h @ 4:352169b06523

update
author Takahiro SHIMIZU <anatofuz@cr.ie.u-ryukyu.ac.jp>
date Fri, 05 Oct 2018 19:31:02 +0900 (2018-10-05)
parents 2cf249471370
children
line wrap: on
line source
#ifdef MVM_VALGRIND_SUPPORT
#  include <valgrind/memcheck.h>

/* The redzone we will put in front of and after every
 * allocation from the fixed size allocator */
#ifndef MVM_FSA_REDZONE_BYTES
#define MVM_FSA_REDZONE_BYTES 4
#endif

#else

#define MVM_FSA_REDZONE_BYTES 0

#define VALGRIND_CREATE_MEMPOOL(pool, rzB, is_zeroed) do { } while (0)
#define VALGRIND_CREATE_MEMPOOL_EXT(pool, rzB, is_zeroed, flags) do { } while (0)
#define VALGRIND_DESTROY_MEMPOOL(pool)  do { } while (0)
#define VALGRIND_MEMPOOL_ALLOC(pool, addr, size) do { } while (0)
#define VALGRIND_MEMPOOL_FREE(pool, addr) do { } while (0)
#define VALGRIND_MOVE_MEMPOOL(poolA, poolB) do { } while (0)
#define VALGRIND_MAKE_MEM_DEFINED(addr, size) do { } while (0)
#endif