mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-08-26 17:13:35 +03:00
Extract out per event new wait time fetching
This commit is contained in:
parent
1e2524e15a
commit
733ae918f0
7 changed files with 48 additions and 21 deletions
10
src/tcache.c
10
src/tcache.c
|
|
@ -40,6 +40,16 @@ tcache_salloc(tsdn_t *tsdn, const void *ptr) {
|
|||
return arena_salloc(tsdn, ptr);
|
||||
}
|
||||
|
||||
uint64_t
|
||||
tcache_gc_new_event_wait(tsd_t *tsd) {
|
||||
return TCACHE_GC_INCR_BYTES;
|
||||
}
|
||||
|
||||
uint64_t
|
||||
tcache_gc_dalloc_new_event_wait(tsd_t *tsd) {
|
||||
return TCACHE_GC_INCR_BYTES;
|
||||
}
|
||||
|
||||
void
|
||||
tcache_event_hard(tsd_t *tsd, tcache_slow_t *tcache_slow, tcache_t *tcache) {
|
||||
szind_t binind = tcache_slow->next_gc_bin;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue