Lines Matching refs:ao
1026 struct arena_object* ao; in PyObject_Free() local
1050 ao = &arenas[pool->arenaindex]; in PyObject_Free()
1051 pool->nextpool = ao->freepools; in PyObject_Free()
1052 ao->freepools = pool; in PyObject_Free()
1053 nf = ++ao->nfreepools; in PyObject_Free()
1067 if (nf == ao->ntotalpools) { in PyObject_Free()
1070 assert(ao->prevarena == NULL || in PyObject_Free()
1071 ao->prevarena->address != 0); in PyObject_Free()
1072 assert(ao ->nextarena == NULL || in PyObject_Free()
1073 ao->nextarena->address != 0); in PyObject_Free()
1078 if (ao->prevarena == NULL) { in PyObject_Free()
1079 usable_arenas = ao->nextarena; in PyObject_Free()
1084 assert(ao->prevarena->nextarena == ao); in PyObject_Free()
1085 ao->prevarena->nextarena = in PyObject_Free()
1086 ao->nextarena; in PyObject_Free()
1089 if (ao->nextarena != NULL) { in PyObject_Free()
1090 assert(ao->nextarena->prevarena == ao); in PyObject_Free()
1091 ao->nextarena->prevarena = in PyObject_Free()
1092 ao->prevarena; in PyObject_Free()
1097 ao->nextarena = unused_arena_objects; in PyObject_Free()
1098 unused_arena_objects = ao; in PyObject_Free()
1102 munmap((void *)ao->address, ARENA_SIZE); in PyObject_Free()
1104 free((void *)ao->address); in PyObject_Free()
1106 ao->address = 0; /* mark unassociated */ in PyObject_Free()
1118 ao->nextarena = usable_arenas; in PyObject_Free()
1119 ao->prevarena = NULL; in PyObject_Free()
1121 usable_arenas->prevarena = ao; in PyObject_Free()
1122 usable_arenas = ao; in PyObject_Free()
1135 if (ao->nextarena == NULL || in PyObject_Free()
1136 nf <= ao->nextarena->nfreepools) { in PyObject_Free()
1146 if (ao->prevarena != NULL) { in PyObject_Free()
1148 assert(ao->prevarena->nextarena == ao); in PyObject_Free()
1149 ao->prevarena->nextarena = ao->nextarena; in PyObject_Free()
1153 assert(usable_arenas == ao); in PyObject_Free()
1154 usable_arenas = ao->nextarena; in PyObject_Free()
1156 ao->nextarena->prevarena = ao->prevarena; in PyObject_Free()
1161 while (ao->nextarena != NULL && in PyObject_Free()
1162 nf > ao->nextarena->nfreepools) { in PyObject_Free()
1163 ao->prevarena = ao->nextarena; in PyObject_Free()
1164 ao->nextarena = ao->nextarena->nextarena; in PyObject_Free()
1168 assert(ao->nextarena == NULL || in PyObject_Free()
1169 ao->prevarena == ao->nextarena->prevarena); in PyObject_Free()
1170 assert(ao->prevarena->nextarena == ao->nextarena); in PyObject_Free()
1172 ao->prevarena->nextarena = ao; in PyObject_Free()
1173 if (ao->nextarena != NULL) in PyObject_Free()
1174 ao->nextarena->prevarena = ao; in PyObject_Free()
1177 assert(ao->nextarena == NULL || in PyObject_Free()
1178 nf <= ao->nextarena->nfreepools); in PyObject_Free()
1179 assert(ao->prevarena == NULL || in PyObject_Free()
1180 nf > ao->prevarena->nfreepools); in PyObject_Free()
1181 assert(ao->nextarena == NULL || in PyObject_Free()
1182 ao->nextarena->prevarena == ao); in PyObject_Free()
1183 assert((usable_arenas == ao && in PyObject_Free()
1184 ao->prevarena == NULL) || in PyObject_Free()
1185 ao->prevarena->nextarena == ao); in PyObject_Free()