21#include <valgrind/memcheck.h>
23#define VALGRIND_CHECK_MEM_IS_DEFINED(addr, size) do {} while (0)
24#define VALGRIND_CREATE_MEMPOOL(context, redzones, zeroed) do {} while (0)
25#define VALGRIND_DESTROY_MEMPOOL(context) do {} while (0)
26#define VALGRIND_MAKE_MEM_DEFINED(addr, size) do {} while (0)
27#define VALGRIND_MAKE_MEM_NOACCESS(addr, size) do {} while (0)
28#define VALGRIND_MAKE_MEM_UNDEFINED(addr, size) do {} while (0)
29#define VALGRIND_MEMPOOL_ALLOC(context, addr, size) do {} while (0)
30#define VALGRIND_MEMPOOL_FREE(context, addr) do {} while (0)
31#define VALGRIND_MEMPOOL_CHANGE(context, optr, nptr, size) do {} while (0)
35#ifdef CLOBBER_FREED_MEMORY
39wipe_mem(
void *ptr,
size_t size)
42 memset(ptr, 0x7F,
size);
48#ifdef MEMORY_CONTEXT_CHECKING
51set_sentinel(
void *base,
Size offset)
53 char *ptr = (
char *) base + offset;
61sentinel_ok(
const void *base,
Size offset)
63 const char *ptr = (
const char *) base + offset;
75#ifdef RANDOMIZE_ALLOCATED_MEMORY
77void randomize_mem(
char *ptr,
size_t size);
#define VALGRIND_MAKE_MEM_DEFINED(addr, size)
#define VALGRIND_MAKE_MEM_NOACCESS(addr, size)
#define VALGRIND_MAKE_MEM_UNDEFINED(addr, size)
static pg_noinline void Size size