Lines Matching refs:arenas
1136 static struct arena_object* arenas = NULL; variable
1205 if (numarenas > SIZE_MAX / sizeof(*arenas)) in new_arena()
1208 nbytes = numarenas * sizeof(*arenas); in new_arena()
1209 arenaobj = (struct arena_object *)PyMem_RawRealloc(arenas, nbytes); in new_arena()
1212 arenas = arenaobj; in new_arena()
1225 arenas[i].address = 0; /* mark as unassociated */ in new_arena()
1226 arenas[i].nextarena = i < numarenas - 1 ? in new_arena()
1227 &arenas[i+1] : NULL; in new_arena()
1231 unused_arena_objects = &arenas[maxarenas]; in new_arena()
1359 (uintptr_t)p - arenas[arenaindex].address < ARENA_SIZE && in address_in_range()
1360 arenas[arenaindex].address != 0; in address_in_range()
1538 pool->arenaindex = (uint)(usable_arenas - arenas); in pymalloc_alloc()
1539 assert(&arenas[pool->arenaindex] == usable_arenas); in pymalloc_alloc()
1689 ao = &arenas[pool->arenaindex]; in pymalloc_free()
2555 uintptr_t base = arenas[i].address; in _PyObject_DebugMallocStats()
2558 if (arenas[i].address == (uintptr_t)NULL) in _PyObject_DebugMallocStats()
2562 numfreepools += arenas[i].nfreepools; in _PyObject_DebugMallocStats()
2572 assert(base <= (uintptr_t) arenas[i].pool_address); in _PyObject_DebugMallocStats()
2573 for (j = 0; base < (uintptr_t) arenas[i].pool_address; in _PyObject_DebugMallocStats()
2582 assert(pool_is_in_list(p, arenas[i].freepools)); in _PyObject_DebugMallocStats()