Lines Matching refs:arenas
60 static arena_t **arenas; variable
379 memcpy(arenas_new, arenas, narenas_total * sizeof(arena_t *)); in arena_init_locked()
386 a0dalloc(arenas); in arena_init_locked()
387 arenas = arenas_new; in arena_init_locked()
395 arena = arenas[ind]; in arena_init_locked()
402 arena = arenas[ind] = arena_new(ind); in arena_init_locked()
434 arena = arenas[ind]; in arena_bind_locked()
456 oldarena = arenas[oldind]; in arena_migrate()
457 newarena = arenas[newind]; in arena_migrate()
470 nthreads = arenas[ind]->nthreads; in arena_nbound()
481 arena = arenas[ind]; in arena_unbind()
527 arena = arenas[ind]; in arena_get_hard()
543 memcpy(arenas_cache, arenas, sizeof(arena_t *) * narenas_actual); in arena_get_hard()
571 if (arenas[i] != NULL) { in arena_choose_hard()
576 if (arenas[i]->nthreads < in arena_choose_hard()
577 arenas[choose]->nthreads) in arena_choose_hard()
593 if (arenas[choose]->nthreads == 0 in arena_choose_hard()
599 ret = arenas[choose]; in arena_choose_hard()
689 arena_t *arena = arenas[i]; in stats_print_atexit()
1208 arenas = &a0;
1209 memset(arenas, 0, sizeof(arena_t *) * narenas_auto);
1298 arenas = (arena_t **)base_alloc(sizeof(arena_t *) * narenas_total);
1299 if (arenas == NULL)
1305 memset(arenas, 0, sizeof(arena_t *) * narenas_total);
1307 arenas[0] = a0;
2509 if (arenas[i] != NULL)
2510 arena_prefork(arenas[i]);
2536 if (arenas[i] != NULL)
2537 arena_postfork_parent(arenas[i]);
2555 if (arenas[i] != NULL)
2556 arena_postfork_child(arenas[i]);
2575 if (arenas[i] != NULL) {
2576 malloc_mutex_lock(&arenas[i]->lock);
2577 mi.hblkhd += arenas[i]->stats.mapped;
2578 mi.uordblks += arenas[i]->stats.allocated_large;
2579 mi.uordblks += arenas[i]->stats.allocated_huge;
2580 malloc_mutex_unlock(&arenas[i]->lock);
2583 arena_bin_t* bin = &arenas[i]->bins[j];
2611 if (arenas[aidx] != NULL) {
2612 malloc_mutex_lock(&arenas[aidx]->lock);
2613 mi.hblkhd = arenas[aidx]->stats.mapped;
2614 mi.ordblks = arenas[aidx]->stats.allocated_large;
2615 mi.uordblks = arenas[aidx]->stats.allocated_huge;
2616 malloc_mutex_unlock(&arenas[aidx]->lock);
2619 arena_bin_t* bin = &arenas[aidx]->bins[j];
2637 if (arenas[aidx] != NULL) {
2638 arena_bin_t* bin = &arenas[aidx]->bins[bidx];