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

Function cache_bin_dalloc_easy

deps/jemalloc/include/jemalloc/internal/cache_bin.h:119–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117}
118
119JEMALLOC_ALWAYS_INLINE bool
120cache_bin_dalloc_easy(cache_bin_t *bin, cache_bin_info_t *bin_info, void *ptr) {
121 if (unlikely(bin->ncached == bin_info->ncached_max)) {
122 return false;
123 }
124 assert(bin->ncached < bin_info->ncached_max);
125 bin->ncached++;
126 *(bin->avail - bin->ncached) = ptr;
127
128 return true;
129}
130
131#endif /* JEMALLOC_INTERNAL_CACHE_BIN_H */

Callers 2

free_fastpathFunction · 0.85
tcache_dalloc_smallFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected