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()
93 __func__, (uintptr_t)allocation->ptr, allocation->size); in allocation_tracker_expect_no_allocations()
114 allocation_t* allocation; in allocation_tracker_notify_alloc() local
116 allocation = map_entry->second; in allocation_tracker_notify_alloc()
117 CHECK(allocation->freed); // Must have been freed before in allocation_tracker_notify_alloc()
119 allocation = (allocation_t*)calloc(1, sizeof(allocation_t)); in allocation_tracker_notify_alloc()
120 allocations[return_ptr] = allocation; in allocation_tracker_notify_alloc()
123 allocation->allocator_id = allocator_id; in allocation_tracker_notify_alloc()
124 allocation->freed = false; in allocation_tracker_notify_alloc()
125 allocation->size = requested_size; in allocation_tracker_notify_alloc()
126 allocation->ptr = return_ptr; in allocation_tracker_notify_alloc()
144 allocation_t* allocation = map_entry->second; in allocation_tracker_notify_free() local
145 CHECK(allocation); // Must have been tracked before in allocation_tracker_notify_free()
146 CHECK(!allocation->freed); // Must not be a double free in allocation_tracker_notify_free()
147 CHECK(allocation->allocator_id == in allocation_tracker_notify_free()
152 free_total_size += allocation_tracker_resize_for_canary(allocation->size); in allocation_tracker_notify_free()
154 allocation->freed = true; in allocation_tracker_notify_free()
157 UNUSED_ATTR const char* end_canary = ((char*)ptr) + allocation->size; in allocation_tracker_notify_free()
168 free(allocation); in allocation_tracker_notify_free()