Lines Matching refs:usable_arenas
1148 static struct arena_object* usable_arenas = NULL; variable
1220 assert(usable_arenas == NULL); in new_arena()
1444 if (usable_arenas == NULL) { in pymalloc_alloc()
1451 usable_arenas = new_arena(); in pymalloc_alloc()
1452 if (usable_arenas == NULL) { in pymalloc_alloc()
1455 usable_arenas->nextarena = in pymalloc_alloc()
1456 usable_arenas->prevarena = NULL; in pymalloc_alloc()
1458 assert(usable_arenas->address != 0); in pymalloc_alloc()
1461 pool = usable_arenas->freepools; in pymalloc_alloc()
1464 usable_arenas->freepools = pool->nextpool; in pymalloc_alloc()
1473 --usable_arenas->nfreepools; in pymalloc_alloc()
1474 if (usable_arenas->nfreepools == 0) { in pymalloc_alloc()
1476 assert(usable_arenas->freepools == NULL); in pymalloc_alloc()
1477 assert(usable_arenas->nextarena == NULL || in pymalloc_alloc()
1478 usable_arenas->nextarena->prevarena == in pymalloc_alloc()
1479 usable_arenas); in pymalloc_alloc()
1481 usable_arenas = usable_arenas->nextarena; in pymalloc_alloc()
1482 if (usable_arenas != NULL) { in pymalloc_alloc()
1483 usable_arenas->prevarena = NULL; in pymalloc_alloc()
1484 assert(usable_arenas->address != 0); in pymalloc_alloc()
1493 assert(usable_arenas->freepools != NULL || in pymalloc_alloc()
1494 usable_arenas->pool_address <= in pymalloc_alloc()
1495 (block*)usable_arenas->address + in pymalloc_alloc()
1533 assert(usable_arenas->nfreepools > 0); in pymalloc_alloc()
1534 assert(usable_arenas->freepools == NULL); in pymalloc_alloc()
1535 pool = (poolp)usable_arenas->pool_address; in pymalloc_alloc()
1536 assert((block*)pool <= (block*)usable_arenas->address + in pymalloc_alloc()
1538 pool->arenaindex = (uint)(usable_arenas - arenas); in pymalloc_alloc()
1539 assert(&arenas[pool->arenaindex] == usable_arenas); in pymalloc_alloc()
1541 usable_arenas->pool_address += POOL_SIZE; in pymalloc_alloc()
1542 --usable_arenas->nfreepools; in pymalloc_alloc()
1544 if (usable_arenas->nfreepools == 0) { in pymalloc_alloc()
1545 assert(usable_arenas->nextarena == NULL || in pymalloc_alloc()
1546 usable_arenas->nextarena->prevarena == in pymalloc_alloc()
1547 usable_arenas); in pymalloc_alloc()
1549 usable_arenas = usable_arenas->nextarena; in pymalloc_alloc()
1550 if (usable_arenas != NULL) { in pymalloc_alloc()
1551 usable_arenas->prevarena = NULL; in pymalloc_alloc()
1552 assert(usable_arenas->address != 0); in pymalloc_alloc()
1718 usable_arenas = ao->nextarena; in pymalloc_free()
1719 assert(usable_arenas == NULL || in pymalloc_free()
1720 usable_arenas->address != 0); in pymalloc_free()
1754 ao->nextarena = usable_arenas; in pymalloc_free()
1756 if (usable_arenas) in pymalloc_free()
1757 usable_arenas->prevarena = ao; in pymalloc_free()
1758 usable_arenas = ao; in pymalloc_free()
1759 assert(usable_arenas->address != 0); in pymalloc_free()
1788 assert(usable_arenas == ao); in pymalloc_free()
1789 usable_arenas = ao->nextarena; in pymalloc_free()
1814 assert((usable_arenas == ao && ao->prevarena == NULL) in pymalloc_free()