mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-04-30 00:58:02 +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
|
|
@ -2350,10 +2350,6 @@ je_malloc(size_t size) {
|
|||
|
||||
tcache_t *tcache = tsd_tcachep_get(tsd);
|
||||
|
||||
if (unlikely(ticker_trytick(&tcache->gc_ticker))) {
|
||||
return malloc_default(size);
|
||||
}
|
||||
|
||||
szind_t ind = sz_size2index_lookup(size);
|
||||
/*
|
||||
* The thread_allocated counter in tsd serves as a general purpose
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue