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

Function do_check_inuse_chunk

lib/dlmalloc/malloc.c:3248–3256  ·  view source on GitHub ↗

Check properties of inuse chunks */

Source from the content-addressed store, hash-verified

3246
3247/* Check properties of inuse chunks */
3248static void do_check_inuse_chunk(mstate m, mchunkptr p) {
3249 do_check_any_chunk(m, p);
3250 assert(is_inuse(p));
3251 assert(next_pinuse(p));
3252 /* If not pinuse and not mmapped, previous chunk has OK offset */
3253 assert(is_mmapped(p) || pinuse(p) || next_chunk(prev_chunk(p)) == p);
3254 if (is_mmapped(p))
3255 do_check_mmapped_chunk(m, p);
3256}
3257
3258/* Check properties of free chunks */
3259static void do_check_free_chunk(mstate m, mchunkptr p) {

Callers 3

do_check_malloced_chunkFunction · 0.85
do_check_smallbinFunction · 0.85
traverse_and_checkFunction · 0.85

Calls 2

do_check_any_chunkFunction · 0.85
do_check_mmapped_chunkFunction · 0.85

Tested by

no test coverage detected