Lines Matching refs:allocation

87     allocation_t* allocation = entry.second;  in allocation_tracker_expect_no_allocations()  local
88 if (!allocation->freed) { in allocation_tracker_expect_no_allocations()
90 allocation->size; // Report back the unfreed byte count in allocation_tracker_expect_no_allocations()
92 __func__, (uintptr_t)allocation->ptr, allocation->size); in allocation_tracker_expect_no_allocations()
113 allocation_t* allocation; in allocation_tracker_notify_alloc() local
115 allocation = map_entry->second; in allocation_tracker_notify_alloc()
116 CHECK(allocation->freed); // Must have been freed before in allocation_tracker_notify_alloc()
118 allocation = (allocation_t*)calloc(1, sizeof(allocation_t)); in allocation_tracker_notify_alloc()
119 allocations[return_ptr] = allocation; in allocation_tracker_notify_alloc()
122 allocation->allocator_id = allocator_id; in allocation_tracker_notify_alloc()
123 allocation->freed = false; in allocation_tracker_notify_alloc()
124 allocation->size = requested_size; in allocation_tracker_notify_alloc()
125 allocation->ptr = return_ptr; in allocation_tracker_notify_alloc()
143 allocation_t* allocation = map_entry->second; in allocation_tracker_notify_free() local
144 CHECK(allocation); // Must have been tracked before in allocation_tracker_notify_free()
145 CHECK(!allocation->freed); // Must not be a double free in allocation_tracker_notify_free()
146 CHECK(allocation->allocator_id == in allocation_tracker_notify_free()
151 free_total_size += allocation_tracker_resize_for_canary(allocation->size); in allocation_tracker_notify_free()
153 allocation->freed = true; in allocation_tracker_notify_free()
156 UNUSED_ATTR const char* end_canary = ((char*)ptr) + allocation->size; in allocation_tracker_notify_free()
167 free(allocation); in allocation_tracker_notify_free()