MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / do_check_treebin

Function do_check_treebin

system/lib/dlmalloc.c:3433–3441  ·  view source on GitHub ↗

Check all the chunks in a treebin. */

Source from the content-addressed store, hash-verified

3431
3432/* Check all the chunks in a treebin. */
3433static void do_check_treebin(mstate m, bindex_t i) {
3434 tbinptr* tb = treebin_at(m, i);
3435 tchunkptr t = *tb;
3436 int empty = (m->treemap & (1U << i)) == 0;
3437 if (t == 0)
3438 assert(empty);
3439 if (!empty)
3440 do_check_tree(m, t);
3441}
3442
3443/* Check all the chunks in a smallbin. */
3444static void do_check_smallbin(mstate m, bindex_t i) {

Callers 1

do_check_malloc_stateFunction · 0.85

Calls 2

do_check_treeFunction · 0.85
assertFunction · 0.50

Tested by

no test coverage detected