mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-06-18 09:55:39 +03:00
Pull tcache GC events into thread event handler
This commit is contained in:
parent
198f02e797
commit
97f93fa0f2
8 changed files with 34 additions and 12 deletions
|
|
@ -233,6 +233,10 @@ 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);
|
||||
}
|
||||
|
||||
return tsd_tcache_enabled_data_init(tsd);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue