Home | History | Annotate | Download | only in src

Lines Matching defs:arenas

7 malloc_tsd_data(, arenas, arena_t *, NULL)
40 arena_t **arenas;
117 /* Create a new arena and insert it into the arenas array at index ind. */
125 arenas[ind] = ret;
133 * by using arenas[0]. In practice, this is an extremely unlikely
140 return (arenas[0]);
155 assert(arenas[0] != NULL);
157 if (arenas[i] != NULL) {
162 if (arenas[i]->nthreads <
163 arenas[choose]->nthreads)
168 * arena, in case all extant arenas are in use.
172 * versus uninitialized arenas, due to the
179 if (arenas[choose]->nthreads == 0
183 * all arenas are already initialized.
185 ret = arenas[choose];
193 ret = arenas[0];
219 arena_t *arena = arenas[i];
754 arenas = init_arenas;
755 memset(arenas, 0, sizeof(arena_t *) * narenas_auto);
762 if (arenas[0] == NULL) {
830 /* Never create more than MAX_ARENAS arenas regardless of num_cpus.
831 * Extra arenas use more PSS and are not very useful unless
839 * Make sure that the arenas array can be allocated. In practice, this
850 /* Allocate and initialize arenas. */
851 arenas = (arena_t **)base_alloc(sizeof(arena_t *) * narenas_total);
852 if (arenas == NULL) {
860 memset(arenas, 0, sizeof(arena_t *) * narenas_total);
862 arenas[0] = init_arenas[0];
1452 arena = arenas[arena_ind];
1571 arenas[arena_ind]);
1572 arena = arenas[arena_ind];
1704 arena = arenas[arena_ind];
1778 arenas[arena_ind]);
1922 if (arenas[i] != NULL)
1923 arena_prefork(arenas[i]);
1951 if (arenas[i] != NULL)
1952 arena_postfork_parent(arenas[i]);
1971 if (arenas[i] != NULL)
1972 arena_postfork_child(arenas[i]);
1997 return (arena_malloc(arenas[0], size, zero, false));