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

Function get_mstate_for

libCacheSim/dataStructure/sparsepp/spp_dlalloc.h:1549–1553  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1547
1548#if SPP_FOOTERS
1549static malloc_state* get_mstate_for(malloc_chunk_header *p)
1550{
1551 return (malloc_state*)(((mchunkptr)((char*)(p) +
1552 (p->chunksize())))->prev_foot ^ mparams._magic);
1553}
1554#endif
1555
1556/* -------------------------- system alloc setup ------------------------- */

Callers 4

internal_bulk_freeMethod · 0.85
mspace_freeFunction · 0.85
mspace_reallocFunction · 0.85
mspace_realloc_in_placeFunction · 0.85

Calls 1

chunksizeMethod · 0.80

Tested by

no test coverage detected