xref: /freebsd/contrib/jemalloc/src/test_hooks.c (revision c5ad81420c495d1d5de04209b0ec4fcb435c322c)
1*c5ad8142SEric van Gyzen #include "jemalloc/internal/jemalloc_preamble.h"
2*c5ad8142SEric van Gyzen 
3*c5ad8142SEric van Gyzen /*
4*c5ad8142SEric van Gyzen  * The hooks are a little bit screwy -- they're not genuinely exported in the
5*c5ad8142SEric van Gyzen  * sense that we want them available to end-users, but we do want them visible
6*c5ad8142SEric van Gyzen  * from outside the generated library, so that we can use them in test code.
7*c5ad8142SEric van Gyzen  */
8*c5ad8142SEric van Gyzen JEMALLOC_EXPORT
9*c5ad8142SEric van Gyzen void (*test_hooks_arena_new_hook)() = NULL;
10*c5ad8142SEric van Gyzen 
11*c5ad8142SEric van Gyzen JEMALLOC_EXPORT
12*c5ad8142SEric van Gyzen void (*test_hooks_libc_hook)() = NULL;
13