• Home
  • Raw
  • Download

Lines Matching refs:ctl_arena

651 				ctl_arena_t		ctl_arena;  in arenas_i_impl()  member
660 ret = &cont->ctl_arena; in arenas_i_impl()
685 ctl_arena_clear(ctl_arena_t *ctl_arena) { in ctl_arena_clear() argument
686 ctl_arena->nthreads = 0; in ctl_arena_clear()
687 ctl_arena->dss = dss_prec_names[dss_prec_limit]; in ctl_arena_clear()
688 ctl_arena->dirty_decay_ms = -1; in ctl_arena_clear()
689 ctl_arena->muzzy_decay_ms = -1; in ctl_arena_clear()
690 ctl_arena->pactive = 0; in ctl_arena_clear()
691 ctl_arena->pdirty = 0; in ctl_arena_clear()
692 ctl_arena->pmuzzy = 0; in ctl_arena_clear()
694 memset(&ctl_arena->astats->astats, 0, sizeof(arena_stats_t)); in ctl_arena_clear()
695 ctl_arena->astats->allocated_small = 0; in ctl_arena_clear()
696 ctl_arena->astats->nmalloc_small = 0; in ctl_arena_clear()
697 ctl_arena->astats->ndalloc_small = 0; in ctl_arena_clear()
698 ctl_arena->astats->nrequests_small = 0; in ctl_arena_clear()
699 memset(ctl_arena->astats->bstats, 0, NBINS * in ctl_arena_clear()
701 memset(ctl_arena->astats->lstats, 0, (NSIZES - NBINS) * in ctl_arena_clear()
707 ctl_arena_stats_amerge(tsdn_t *tsdn, ctl_arena_t *ctl_arena, arena_t *arena) { in ctl_arena_stats_amerge() argument
711 arena_stats_merge(tsdn, arena, &ctl_arena->nthreads, in ctl_arena_stats_amerge()
712 &ctl_arena->dss, &ctl_arena->dirty_decay_ms, in ctl_arena_stats_amerge()
713 &ctl_arena->muzzy_decay_ms, &ctl_arena->pactive, in ctl_arena_stats_amerge()
714 &ctl_arena->pdirty, &ctl_arena->pmuzzy, in ctl_arena_stats_amerge()
715 &ctl_arena->astats->astats, ctl_arena->astats->bstats, in ctl_arena_stats_amerge()
716 ctl_arena->astats->lstats); in ctl_arena_stats_amerge()
719 ctl_arena->astats->allocated_small += in ctl_arena_stats_amerge()
720 ctl_arena->astats->bstats[i].curregs * in ctl_arena_stats_amerge()
722 ctl_arena->astats->nmalloc_small += in ctl_arena_stats_amerge()
723 ctl_arena->astats->bstats[i].nmalloc; in ctl_arena_stats_amerge()
724 ctl_arena->astats->ndalloc_small += in ctl_arena_stats_amerge()
725 ctl_arena->astats->bstats[i].ndalloc; in ctl_arena_stats_amerge()
726 ctl_arena->astats->nrequests_small += in ctl_arena_stats_amerge()
727 ctl_arena->astats->bstats[i].nrequests; in ctl_arena_stats_amerge()
730 arena_basic_stats_merge(tsdn, arena, &ctl_arena->nthreads, in ctl_arena_stats_amerge()
731 &ctl_arena->dss, &ctl_arena->dirty_decay_ms, in ctl_arena_stats_amerge()
732 &ctl_arena->muzzy_decay_ms, &ctl_arena->pactive, in ctl_arena_stats_amerge()
733 &ctl_arena->pdirty, &ctl_arena->pmuzzy); in ctl_arena_stats_amerge()
738 ctl_arena_stats_sdmerge(ctl_arena_t *ctl_sdarena, ctl_arena_t *ctl_arena, in ctl_arena_stats_sdmerge() argument
743 ctl_sdarena->nthreads += ctl_arena->nthreads; in ctl_arena_stats_sdmerge()
744 ctl_sdarena->pactive += ctl_arena->pactive; in ctl_arena_stats_sdmerge()
745 ctl_sdarena->pdirty += ctl_arena->pdirty; in ctl_arena_stats_sdmerge()
746 ctl_sdarena->pmuzzy += ctl_arena->pmuzzy; in ctl_arena_stats_sdmerge()
748 assert(ctl_arena->nthreads == 0); in ctl_arena_stats_sdmerge()
749 assert(ctl_arena->pactive == 0); in ctl_arena_stats_sdmerge()
750 assert(ctl_arena->pdirty == 0); in ctl_arena_stats_sdmerge()
751 assert(ctl_arena->pmuzzy == 0); in ctl_arena_stats_sdmerge()
756 ctl_arena_stats_t *astats = ctl_arena->astats; in ctl_arena_stats_sdmerge()
826 if (ctl_arena->arena_ind == 0) { in ctl_arena_stats_sdmerge()
876 ctl_arena_t *ctl_arena = arenas_i(i); in ctl_arena_refresh() local
878 ctl_arena_clear(ctl_arena); in ctl_arena_refresh()
879 ctl_arena_stats_amerge(tsdn, ctl_arena, arena); in ctl_arena_refresh()
881 ctl_arena_stats_sdmerge(ctl_sdarena, ctl_arena, destroyed); in ctl_arena_refresh()
887 ctl_arena_t *ctl_arena; in ctl_arena_init() local
889 if ((ctl_arena = ql_last(&ctl_arenas->destroyed, destroyed_link)) != in ctl_arena_init()
891 ql_remove(&ctl_arenas->destroyed, ctl_arena, destroyed_link); in ctl_arena_init()
892 arena_ind = ctl_arena->arena_ind; in ctl_arena_init()
941 ctl_arena_t *ctl_arena = arenas_i(i); in ctl_refresh() local
944 ctl_arena->initialized = initialized; in ctl_refresh()
2100 ctl_arena_t *ctl_darena, *ctl_arena; in arena_i_destroy_ctl() local
2123 ctl_arena = arenas_i(arena_ind); in arena_i_destroy_ctl()
2124 ctl_arena->initialized = false; in arena_i_destroy_ctl()
2126 ql_elm_new(ctl_arena, destroyed_link); in arena_i_destroy_ctl()
2127 ql_tail_insert(&ctl_arenas->destroyed, ctl_arena, destroyed_link); in arena_i_destroy_ctl()