]>
git.proxmox.com Git - rustc.git/blob - src/jemalloc/src/valgrind.c
1 #include "jemalloc/internal/jemalloc_internal.h"
2 #ifndef JEMALLOC_VALGRIND
3 # error "This source file is for Valgrind integration."
6 #include <valgrind/memcheck.h>
9 valgrind_make_mem_noaccess(void *ptr
, size_t usize
)
12 VALGRIND_MAKE_MEM_NOACCESS(ptr
, usize
);
16 valgrind_make_mem_undefined(void *ptr
, size_t usize
)
19 VALGRIND_MAKE_MEM_UNDEFINED(ptr
, usize
);
23 valgrind_make_mem_defined(void *ptr
, size_t usize
)
26 VALGRIND_MAKE_MEM_DEFINED(ptr
, usize
);
30 valgrind_freelike_block(void *ptr
, size_t usize
)
33 VALGRIND_FREELIKE_BLOCK(ptr
, usize
);