MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / tcache_event

Function tcache_event

deps/jemalloc/include/jemalloc/internal/tcache_inlines.h:30–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30JEMALLOC_ALWAYS_INLINE void
31tcache_event(tsd_t *tsd, tcache_t *tcache) {
32 if (TCACHE_GC_INCR == 0) {
33 return;
34 }
35
36 if (unlikely(ticker_tick(&tcache->gc_ticker))) {
37 tcache_event_hard(tsd, tcache);
38 }
39}
40
41JEMALLOC_ALWAYS_INLINE void *
42tcache_alloc_small(tsd_t *tsd, arena_t *arena, tcache_t *tcache,

Callers 4

tcache_alloc_smallFunction · 0.70
tcache_alloc_largeFunction · 0.70
tcache_dalloc_smallFunction · 0.70
tcache_dalloc_largeFunction · 0.70

Calls 2

ticker_tickFunction · 0.70
tcache_event_hardFunction · 0.50

Tested by

no test coverage detected