| 1452 | } |
| 1453 | |
| 1454 | static void* TrackAllocation(void* ptr, size_t size, int sizeIdx) { |
| 1455 | TAllocHeader* p = (TAllocHeader*)ptr; |
| 1456 | p->Size = size; |
| 1457 | p->Tag = AllocationTag; |
| 1458 | p->Cookie = SampleAllocation(p, sizeIdx); |
| 1459 | TrackPerTagAllocation(p, sizeIdx); |
| 1460 | return GetAllocPtr(p); |
| 1461 | } |
| 1462 | |
| 1463 | static void TrackDeallocation(void* ptr, int sizeIdx) { |
| 1464 | TAllocHeader* p = (TAllocHeader*)ptr; |
no test coverage detected