MCPcopy Create free account
hub / github.com/beefytech/Beef / Magic

Function Magic

BeefRT/gperftools/src/base/low_level_alloc.cc:258–260  ·  view source on GitHub ↗

create an appropriate magic number for an object at "ptr" "magic" should be kMagicAllocated or kMagicUnallocated

Source from the content-addressed store, hash-verified

256// create an appropriate magic number for an object at "ptr"
257// "magic" should be kMagicAllocated or kMagicUnallocated
258inline static intptr_t Magic(intptr_t magic, AllocList::Header *ptr) {
259 return magic ^ reinterpret_cast<intptr_t>(ptr);
260}
261
262// Initialize the fields of an Arena
263static void ArenaInit(LowLevelAlloc::Arena *arena) {

Callers 6

ArenaInitFunction · 0.70
DeleteArenaMethod · 0.70
NextFunction · 0.70
AddToFreelistFunction · 0.70
FreeMethod · 0.70
DoAllocWithArenaFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected