Home
last modified time | relevance | path

Searched refs:occupied_bin (Results 1 – 2 of 2) sorted by relevance

/third_party/musl/porting/linux/user/src/malloc/
Dstats.c100 static malloc_stats_t add_up_chunks(occupied_bin_t *occupied_bin) in add_up_chunks() argument
103 for (struct chunk *c = occupied_bin->head; c != NULL; c = c->next_occupied) { in add_up_chunks()
116 static malloc_stats_t add_up_chunks_by_threads(occupied_bin_t *occupied_bin, int tid) in add_up_chunks_by_threads() argument
119 for (struct chunk *c = occupied_bin->head; c != NULL; c = c->next_occupied) { in add_up_chunks_by_threads()
139 occupied_bin_t *occupied_bin = __get_occupied_bin_by_idx(i); in print_threads() local
144 for (struct chunk *c = occupied_bin->head; c != NULL; c = c->next_occupied) { in print_threads()
151 malloc_stats_t stats = add_up_chunks_by_threads(occupied_bin, min_id); in print_threads()
Dmalloc.c70 static void occupied_bin_destructor(void *occupied_bin) in occupied_bin_destructor() argument
72 internal_free(occupied_bin); in occupied_bin_destructor()
130 occupied_bin_t *occupied_bin = __get_current_occupied_bin(); in __push_chunk() local
131 lock(occupied_bin->lock); in __push_chunk()
133 if (occupied_bin->head != NULL) { in __push_chunk()
134 occupied_bin->head->prev_occupied = c; in __push_chunk()
135 c->next_occupied = occupied_bin->head; in __push_chunk()
137 occupied_bin->tail = c; in __push_chunk()
139 occupied_bin->head = c; in __push_chunk()
142 unlock(occupied_bin->lock); in __push_chunk()
[all …]