blob: 8e7ef3a2e63b74ddbf98f40640c6fa147e4328ef [file] [log] [blame]
Jason Evansbd87b012014-04-15 16:35:08 -07001#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}