Mercurial > hg > Members > anatofuz > MoarVM
view src/memdebug.h @ 11:e08e6dca633f
add switch code
author | Takahiro SHIMIZU <anatofuz@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 09 Oct 2018 16:17:01 +0900 |
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