mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-30 23:18:04 +03:00
Add TSD reentrant stress test
This commit is contained in:
parent
7ce8b9165d
commit
7c34a482c1
5 changed files with 149 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue