Limit TSD bootstrap hook to tests

This commit is contained in:
Farid Zakaria 2026-07-06 11:03:51 -07:00 committed by Slobodan Predolac
parent 54f22c83d8
commit b859093d28
4 changed files with 5 additions and 142 deletions

View file

@ -4,7 +4,9 @@
extern JEMALLOC_EXPORT void (*test_hooks_arena_new_hook)(void);
extern JEMALLOC_EXPORT void (*test_hooks_libc_hook)(void);
extern JEMALLOC_EXPORT void (*test_hooks_safety_check_abort)(const char *);
#if defined(JEMALLOC_JET) || defined(JEMALLOC_UNIT_TEST)
extern JEMALLOC_EXPORT void (*test_hooks_tsd_bootstrap_hook)(void);
#endif
#if defined(JEMALLOC_JET) || defined(JEMALLOC_UNIT_TEST)
# define JEMALLOC_TEST_HOOK(fn, hook) \