Lines Matching refs:allocations
62 static hash_map_t *allocations; variable
66 if (allocations) in allocation_tracker_init()
74 allocations = hash_map_new_internal( in allocation_tracker_init()
86 if (!allocations) in allocation_tracker_uninit()
90 hash_map_free(allocations); in allocation_tracker_uninit()
91 allocations = NULL; in allocation_tracker_uninit()
96 if (!allocations) in allocation_tracker_reset()
100 hash_map_clear(allocations); in allocation_tracker_reset()
105 if (!allocations) in allocation_tracker_expect_no_allocations()
111 hash_map_foreach(allocations, allocation_entry_freed_checker, &unfreed_memory_size); in allocation_tracker_expect_no_allocations()
119 if (!allocations || !ptr) in allocation_tracker_notify_alloc()
128 allocation_t *allocation = (allocation_t *)hash_map_get(allocations, return_ptr); in allocation_tracker_notify_alloc()
133 hash_map_set(allocations, return_ptr, allocation); in allocation_tracker_notify_alloc()
151 if (!allocations || !ptr) in allocation_tracker_notify_free()
156 allocation_t *allocation = (allocation_t *)hash_map_get(allocations, ptr); in allocation_tracker_notify_free()
176 return (!allocations) ? size : size + (2 * canary_size); in allocation_tracker_resize_for_canary()