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

Method IsReferenced

IDEHelper/HotHeap.cpp:102–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100}
101
102bool HotHeap::IsReferenced(addr_target addr, int size)
103{
104 int blockStart = (int)(addr - mHotAreaStart) / BLOCK_SIZE;
105 int blockCount = (size + BLOCK_SIZE - 1) / BLOCK_SIZE;
106 for (int blockNum = blockStart; blockNum < blockStart + blockCount; blockNum++)
107 if ((mHotAreaUsed[blockNum] & HotUseFlags_Referenced) != 0)
108 return true;
109 return false;
110}
111
112void HotHeap::MarkBlockReferenced(addr_target addr)
113{

Callers 1

CleanupHotHeapMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected