Lines Matching refs:nfreepools
967 uint nfreepools; member
1323 arenaobj->nfreepools = MAX_POOLS_IN_ARENA; in new_arena()
1326 --arenaobj->nfreepools; in new_arena()
1329 arenaobj->ntotalpools = arenaobj->nfreepools; in new_arena()
1471 assert(nfp2lasta[usable_arenas->nfreepools] == NULL); in allocate_from_new_pool()
1472 nfp2lasta[usable_arenas->nfreepools] = usable_arenas; in allocate_from_new_pool()
1481 assert(usable_arenas->nfreepools > 0); in allocate_from_new_pool()
1482 if (nfp2lasta[usable_arenas->nfreepools] == usable_arenas) { in allocate_from_new_pool()
1484 nfp2lasta[usable_arenas->nfreepools] = NULL; in allocate_from_new_pool()
1487 if (usable_arenas->nfreepools > 1) { in allocate_from_new_pool()
1488 assert(nfp2lasta[usable_arenas->nfreepools - 1] == NULL); in allocate_from_new_pool()
1489 nfp2lasta[usable_arenas->nfreepools - 1] = usable_arenas; in allocate_from_new_pool()
1497 usable_arenas->nfreepools--; in allocate_from_new_pool()
1498 if (UNLIKELY(usable_arenas->nfreepools == 0)) { in allocate_from_new_pool()
1524 assert(usable_arenas->nfreepools > 0); in allocate_from_new_pool()
1533 --usable_arenas->nfreepools; in allocate_from_new_pool()
1535 if (usable_arenas->nfreepools == 0) { in allocate_from_new_pool()
1703 uint nf = ao->nfreepools; in insert_to_freepool()
1712 lastnf->nfreepools == nf && in insert_to_freepool()
1714 nf < lastnf->nextarena->nfreepools))); in insert_to_freepool()
1717 nfp2lasta[nf] = (p != NULL && p->nfreepools == nf) ? p : NULL; in insert_to_freepool()
1719 ao->nfreepools = ++nf; in insert_to_freepool()
1844 assert(ao->nextarena == NULL || nf <= ao->nextarena->nfreepools); in insert_to_freepool()
1845 assert(ao->prevarena == NULL || nf > ao->prevarena->nfreepools); in insert_to_freepool()
2647 numfreepools += arenas[i].nfreepools; in _PyObject_DebugMallocStats()