MCPcopy Index your code
hub / github.com/dcodeIO/webassembly / do_check_treebin

Function do_check_treebin

lib/dlmalloc/malloc.c:3347–3355  ·  view source on GitHub ↗

Check all the chunks in a treebin. */

Source from the content-addressed store, hash-verified

3345
3346/* Check all the chunks in a treebin. */
3347static void do_check_treebin(mstate m, bindex_t i) {
3348 tbinptr* tb = treebin_at(m, i);
3349 tchunkptr t = *tb;
3350 int empty = (m->treemap & (1U << i)) == 0;
3351 if (t == 0)
3352 assert(empty);
3353 if (!empty)
3354 do_check_tree(m, t);
3355}
3356
3357/* Check all the chunks in a smallbin. */
3358static 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