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

Function ReallocEntry

IDEHelper/DebugManager.cpp:193–205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

191CaptureAllocLocation* gHashCaptureAllocSize[CAPTURE_ALLOC_POOL_SIZE] = { 0 };
192
193static void ReallocEntry(long oldRequest, long newRequest, int newSize)
194{
195 auto itr = gBfCaptureSourceAllocMap.find(oldRequest);
196 if (itr != gBfCaptureSourceAllocMap.end())
197 {
198 CaptureAllocEntry* entry = &itr->second;
199 entry->mLoc->mTotalSize -= entry->mAllocSize;
200 entry->mLoc->mTotalSize += newSize;
201 entry->mAllocSize = newSize;
202 gBfCaptureSourceAllocMap[newRequest] = *entry;
203 gBfCaptureSourceAllocMap.erase(itr);
204 }
205}
206
207static void RemoveAllocEntry(long lRequest)
208{

Callers 1

BfAllocHookFunction · 0.85

Calls 3

findMethod · 0.80
endMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected