mirror of
https://github.com/jemalloc/jemalloc
synced 2026-06-08 15:01:07 +00:00
0a0fcd3e6a
This allows us to hook chosen functions and do interesting things there (in particular: reentrancy checking).
13 lines
397 B
C
13 lines
397 B
C
#include "jemalloc/internal/jemalloc_internal.h"
|
|
|
|
/*
|
|
* The hooks are a little bit screwy -- they're not genuinely exported in the
|
|
* sense that we want them available to end-users, but we do want them visible
|
|
* from outside the generated library, so that we can use them in test code.
|
|
*/
|
|
JEMALLOC_EXPORT
|
|
void (*hooks_arena_new_hook)() = NULL;
|
|
|
|
JEMALLOC_EXPORT
|
|
void (*hooks_libc_hook)() = NULL;
|