Home | History | Annotate | Download | only in src
      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 
      8 void
      9 valgrind_make_mem_noaccess(void *ptr, size_t usize)
     10 {
     11 
     12 	VALGRIND_MAKE_MEM_NOACCESS(ptr, usize);
     13 }
     14 
     15 void
     16 valgrind_make_mem_undefined(void *ptr, size_t usize)
     17 {
     18 
     19 	VALGRIND_MAKE_MEM_UNDEFINED(ptr, usize);
     20 }
     21 
     22 void
     23 valgrind_make_mem_defined(void *ptr, size_t usize)
     24 {
     25 
     26 	VALGRIND_MAKE_MEM_DEFINED(ptr, usize);
     27 }
     28 
     29 void
     30 valgrind_freelike_block(void *ptr, size_t usize)
     31 {
     32 
     33 	VALGRIND_FREELIKE_BLOCK(ptr, usize);
     34 }
     35