| 1412 | } |
| 1413 | |
| 1414 | static inline void SampleDeallocation(TAllocHeader* p, int sizeIdx) { |
| 1415 | if (p->Cookie != DBG_ALLOC_INVALID_COOKIE && !InAllocationCallback) { |
| 1416 | if (DeallocationCallback) { |
| 1417 | InAllocationCallback = true; |
| 1418 | DeallocationCallback(p->Cookie, p->Tag, p->Size, sizeIdx); |
| 1419 | InAllocationCallback = false; |
| 1420 | } |
| 1421 | } |
| 1422 | } |
| 1423 | |
| 1424 | static inline void TrackPerTagAllocation(TAllocHeader* p, int sizeIdx) { |
| 1425 | if (p->Tag < DBG_ALLOC_MAX_TAG && p->Tag >= 0) { |