Add TSD reentrant stress test

This commit is contained in:
Farid Zakaria
2026-07-02 13:00:25 -07:00
committed by Slobodan Predolac
parent 7ce8b9165d
commit 7c34a482c1
5 changed files with 149 additions and 1 deletions

View File

@@ -1051,6 +1051,9 @@ tsd_tcache_enabled_data_init(tsd_t *tsd) {
*/
tcache_default_settings_init(tsd_tcache_slowp_get(tsd));
tsd_slow_update(tsd);
if (test_hooks_tsd_bootstrap_hook != NULL) {
test_hooks_tsd_bootstrap_hook();
}
if (opt_tcache) {
/* Trigger tcache init. */

View File

@@ -13,3 +13,6 @@ void (*test_hooks_libc_hook)(void) = NULL;
JEMALLOC_EXPORT
void (*test_hooks_safety_check_abort)(const char *) = NULL;
JEMALLOC_EXPORT
void (*test_hooks_tsd_bootstrap_hook)(void) = NULL;