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

Function tcache_alloc_small_hard

deps/jemalloc/src/tcache.c:88–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88void *
89tcache_alloc_small_hard(tsdn_t *tsdn, arena_t *arena, tcache_t *tcache,
90 cache_bin_t *tbin, szind_t binind, bool *tcache_success) {
91 void *ret;
92
93 assert(tcache->arena != NULL);
94 arena_tcache_fill_small(tsdn, arena, tcache, tbin, binind,
95 config_prof ? tcache->prof_accumbytes : 0);
96 if (config_prof) {
97 tcache->prof_accumbytes = 0;
98 }
99 ret = cache_bin_alloc_easy(tbin, tcache_success);
100
101 return ret;
102}
103
104/* Enabled with --enable-extra-size-check. */
105static void

Callers 1

tcache_alloc_smallFunction · 0.50

Calls 2

cache_bin_alloc_easyFunction · 0.85
arena_tcache_fill_smallFunction · 0.70

Tested by

no test coverage detected