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

Function do_check_any_chunk

dlmalloc/dlmalloc.c:2602–2605  ·  view source on GitHub ↗

Check properties of any chunk, whether free, inuse, mmapped etc */

Source from the content-addressed store, hash-verified

2600
2601/* Check properties of any chunk, whether free, inuse, mmapped etc */
2602static void do_check_any_chunk(mstate m, mchunkptr p) {
2603 assert((is_aligned(chunk2mem(p))) || (p->head == FENCEPOST_HEAD));
2604 assert(ok_address(m, p));
2605}
2606
2607/* Check properties of top chunk */
2608static void do_check_top_chunk(mstate m, mchunkptr p) {

Callers 4

do_check_inuse_chunkFunction · 0.85
do_check_free_chunkFunction · 0.85
do_check_treeFunction · 0.85
do_check_malloc_stateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected