Lines Matching refs:arenaindex
913 * size, then `POOL_ADDR(p)->arenaindex' could rarely cause a segmentation
1007 uint arenaindex; /* index into arenas of base adr */
1703 arenas[(POOL)->arenaindex].address. Then P belongs to the arena if and only if
1716 (POOL)->arenaindex < maxarenas must be false, saving us from trying to index
1720 arenas[(POOL)->arenaindex]. Suppose obmalloc controls P. Then (barring wild
1728 call to the system malloc() or realloc()). (POOL)->arenaindex may be anything
1729 in this case -- it may even be uninitialized trash. If the trash arenaindex
1733 Else arenaindex is < maxarena, and AO is read up. If AO corresponds to an
1753 2.5, arenas were never free()'ed, and an arenaindex < maxarena always
1759 memory when P is not controlled by obmalloc (to get at (POOL)->arenaindex)
1773 // by Python, it is important that pool->arenaindex is read only once, as
1775 // the GIL. The following dance forces the compiler to read pool->arenaindex
1777 uint arenaindex = *((volatile uint *)&pool->arenaindex);
1778 return arenaindex < maxarenas &&
1779 (uintptr_t)p - arenas[arenaindex].address < ARENA_SIZE &&
1780 arenas[arenaindex].address != 0;
1887 pool->arenaindex = (uint)(usable_arenas - arenas);
1888 assert(&arenas[pool->arenaindex] == usable_arenas);
2058 struct arena_object *ao = &arenas[pool->arenaindex];