MCPcopy Create free account
hub / github.com/F-Stack/f-stack / base_delete

Function base_delete

app/redis-6.2.6/deps/jemalloc/src/base.c:395–405  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

393}
394
395void
396base_delete(tsdn_t *tsdn, base_t *base) {
397 extent_hooks_t *extent_hooks = base_extent_hooks_get(base);
398 base_block_t *next = base->blocks;
399 do {
400 base_block_t *block = next;
401 next = block->next;
402 base_unmap(tsdn, extent_hooks, base_ind_get(base), block,
403 block->size);
404 } while (next != NULL);
405}
406
407extent_hooks_t *
408base_extent_hooks_get(base_t *base) {

Callers 4

base.cFile · 0.85
TEST_BEGINFunction · 0.85
arena_destroyFunction · 0.85
arena_newFunction · 0.85

Calls 3

base_extent_hooks_getFunction · 0.85
base_unmapFunction · 0.85
base_ind_getFunction · 0.85

Tested by 1

TEST_BEGINFunction · 0.68