MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / do_check_treebin

Function do_check_treebin

dlmalloc/dlmalloc.c:2735–2743  ·  view source on GitHub ↗

Check all the chunks in a treebin. */

Source from the content-addressed store, hash-verified

2733
2734/* Check all the chunks in a treebin. */
2735static void do_check_treebin(mstate m, bindex_t i) {
2736 tbinptr* tb = treebin_at(m, i);
2737 tchunkptr t = *tb;
2738 int empty = (m->treemap & (1U << i)) == 0;
2739 if (t == 0)
2740 assert(empty);
2741 if (!empty)
2742 do_check_tree(m, t);
2743}
2744
2745/* Check all the chunks in a smallbin. */
2746static void do_check_smallbin(mstate m, bindex_t i) {

Callers 1

do_check_malloc_stateFunction · 0.85

Calls 1

do_check_treeFunction · 0.85

Tested by

no test coverage detected