xref: /aosp_15_r20/external/jemalloc_new/src/hooks.c (revision 1208bc7e437ced7eb82efac44ba17e3beba411da)
1*1208bc7eSAndroid Build Coastguard Worker #include "jemalloc/internal/jemalloc_preamble.h"
2*1208bc7eSAndroid Build Coastguard Worker 
3*1208bc7eSAndroid Build Coastguard Worker /*
4*1208bc7eSAndroid Build Coastguard Worker  * The hooks are a little bit screwy -- they're not genuinely exported in the
5*1208bc7eSAndroid Build Coastguard Worker  * sense that we want them available to end-users, but we do want them visible
6*1208bc7eSAndroid Build Coastguard Worker  * from outside the generated library, so that we can use them in test code.
7*1208bc7eSAndroid Build Coastguard Worker  */
8*1208bc7eSAndroid Build Coastguard Worker JEMALLOC_EXPORT
9*1208bc7eSAndroid Build Coastguard Worker void (*hooks_arena_new_hook)() = NULL;
10*1208bc7eSAndroid Build Coastguard Worker 
11*1208bc7eSAndroid Build Coastguard Worker JEMALLOC_EXPORT
12*1208bc7eSAndroid Build Coastguard Worker void (*hooks_libc_hook)() = NULL;
13