mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-23 13:13:06 +00:00
Add TSD reentrant stress test
This commit is contained in:
committed by
Slobodan Predolac
parent
7ce8b9165d
commit
7c34a482c1
@@ -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. */
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user