| 191 | CaptureAllocLocation* gHashCaptureAllocSize[CAPTURE_ALLOC_POOL_SIZE] = { 0 }; |
| 192 | |
| 193 | static 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 | |
| 207 | static void RemoveAllocEntry(long lRequest) |
| 208 | { |
no test coverage detected