MCPcopy Create free account
hub / github.com/1a1a11a/libCacheSim / do_check_any_chunk

Method do_check_any_chunk

libCacheSim/dataStructure/sparsepp/spp_dlalloc.h:1722–1726  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1720
1721// Check properties of any chunk, whether free, inuse, mmapped etc
1722void malloc_state::do_check_any_chunk(mchunkptr p) const
1723{
1724 assert((spp_is_aligned(chunk2mem(p))) || (p->_head == FENCEPOST_HEAD));
1725 assert(ok_address(p));
1726}
1727
1728// Check properties of top chunk
1729void malloc_state::do_check_top_chunk(mchunkptr p) const

Callers

nothing calls this directly

Calls 3

assertFunction · 0.85
spp_is_alignedFunction · 0.85
chunk2memFunction · 0.85

Tested by

no test coverage detected