Define general purpose tsd_thread_event_init()

This commit is contained in:
Yinan Zhang
2019-11-01 14:11:59 -07:00
parent 97f93fa0f2
commit 43f0ce92d8
3 changed files with 31 additions and 3 deletions

View File

@@ -233,9 +233,7 @@ tsd_data_init(tsd_t *tsd) {
*tsd_offset_statep_get(tsd) = config_debug ? 0 :
(uint64_t)(uintptr_t)tsd;
if (TCACHE_GC_INCR_BYTES > 0) {
thread_tcache_gc_event_update(tsd, TCACHE_GC_INCR_BYTES);
}
tsd_thread_event_init(tsd);
return tsd_tcache_enabled_data_init(tsd);
}