Lines Matching refs:usable_arenas
533 static struct arena_object* usable_arenas = NULL; variable
595 assert(usable_arenas == NULL); in new_arena()
859 if (usable_arenas == NULL) { in PyObject_Malloc()
867 usable_arenas = new_arena(); in PyObject_Malloc()
868 if (usable_arenas == NULL) { in PyObject_Malloc()
872 usable_arenas->nextarena = in PyObject_Malloc()
873 usable_arenas->prevarena = NULL; in PyObject_Malloc()
875 assert(usable_arenas->address != 0); in PyObject_Malloc()
878 pool = usable_arenas->freepools; in PyObject_Malloc()
881 usable_arenas->freepools = pool->nextpool; in PyObject_Malloc()
890 --usable_arenas->nfreepools; in PyObject_Malloc()
891 if (usable_arenas->nfreepools == 0) { in PyObject_Malloc()
893 assert(usable_arenas->freepools == NULL); in PyObject_Malloc()
894 assert(usable_arenas->nextarena == NULL || in PyObject_Malloc()
895 usable_arenas->nextarena->prevarena == in PyObject_Malloc()
896 usable_arenas); in PyObject_Malloc()
898 usable_arenas = usable_arenas->nextarena; in PyObject_Malloc()
899 if (usable_arenas != NULL) { in PyObject_Malloc()
900 usable_arenas->prevarena = NULL; in PyObject_Malloc()
901 assert(usable_arenas->address != 0); in PyObject_Malloc()
910 assert(usable_arenas->freepools != NULL || in PyObject_Malloc()
911 usable_arenas->pool_address <= in PyObject_Malloc()
912 (block*)usable_arenas->address + in PyObject_Malloc()
950 assert(usable_arenas->nfreepools > 0); in PyObject_Malloc()
951 assert(usable_arenas->freepools == NULL); in PyObject_Malloc()
952 pool = (poolp)usable_arenas->pool_address; in PyObject_Malloc()
953 assert((block*)pool <= (block*)usable_arenas->address + in PyObject_Malloc()
955 pool->arenaindex = usable_arenas - arenas; in PyObject_Malloc()
956 assert(&arenas[pool->arenaindex] == usable_arenas); in PyObject_Malloc()
958 usable_arenas->pool_address += POOL_SIZE; in PyObject_Malloc()
959 --usable_arenas->nfreepools; in PyObject_Malloc()
961 if (usable_arenas->nfreepools == 0) { in PyObject_Malloc()
962 assert(usable_arenas->nextarena == NULL || in PyObject_Malloc()
963 usable_arenas->nextarena->prevarena == in PyObject_Malloc()
964 usable_arenas); in PyObject_Malloc()
966 usable_arenas = usable_arenas->nextarena; in PyObject_Malloc()
967 if (usable_arenas != NULL) { in PyObject_Malloc()
968 usable_arenas->prevarena = NULL; in PyObject_Malloc()
969 assert(usable_arenas->address != 0); in PyObject_Malloc()
1079 usable_arenas = ao->nextarena; in PyObject_Free()
1080 assert(usable_arenas == NULL || in PyObject_Free()
1081 usable_arenas->address != 0); in PyObject_Free()
1118 ao->nextarena = usable_arenas; in PyObject_Free()
1120 if (usable_arenas) in PyObject_Free()
1121 usable_arenas->prevarena = ao; in PyObject_Free()
1122 usable_arenas = ao; in PyObject_Free()
1123 assert(usable_arenas->address != 0); in PyObject_Free()
1153 assert(usable_arenas == ao); in PyObject_Free()
1154 usable_arenas = ao->nextarena; in PyObject_Free()
1183 assert((usable_arenas == ao && in PyObject_Free()