1#include "jemalloc/internal/jemalloc_internal.h"
2#ifndef JEMALLOC_VALGRIND
3#  error "This source file is for Valgrind integration."
4#endif
5
6#include <valgrind/memcheck.h>
7
8void
9valgrind_make_mem_noaccess(void *ptr, size_t usize)
10{
11
12	VALGRIND_MAKE_MEM_NOACCESS(ptr, usize);
13}
14
15void
16valgrind_make_mem_undefined(void *ptr, size_t usize)
17{
18
19	VALGRIND_MAKE_MEM_UNDEFINED(ptr, usize);
20}
21
22void
23valgrind_make_mem_defined(void *ptr, size_t usize)
24{
25
26	VALGRIND_MAKE_MEM_DEFINED(ptr, usize);
27}
28
29void
30valgrind_freelike_block(void *ptr, size_t usize)
31{
32
33	VALGRIND_FREELIKE_BLOCK(ptr, usize);
34}
35