Home
last modified time | relevance | path

Searched refs:ARENA_SIZE (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython2/Objects/
Dobmalloc.c217 #define ARENA_SIZE (256 << 10) /* 256KiB */ macro
220 #define MAX_ARENAS (SMALL_MEMORY_LIMIT / ARENA_SIZE)
616 address = mmap(NULL, ARENA_SIZE, PROT_READ|PROT_WRITE, in new_arena()
620 address = malloc(ARENA_SIZE); in new_arena()
643 arenaobj->nfreepools = ARENA_SIZE / POOL_SIZE; in new_arena()
644 assert(POOL_SIZE * arenaobj->nfreepools == ARENA_SIZE); in new_arena()
739 (uptr)(P) - arenas[arenaindex_temp].address < (uptr)ARENA_SIZE && \
913 ARENA_SIZE - POOL_SIZE); in PyObject_Malloc()
954 ARENA_SIZE - POOL_SIZE); in PyObject_Malloc()
1102 munmap((void *)ao->address, ARENA_SIZE); in PyObject_Free()
[all …]
/external/python/cpython3/Objects/
Dobmalloc.c931 #define ARENA_SIZE (1 << ARENA_BITS) macro
932 #define ARENA_SIZE_MASK (ARENA_SIZE - 1)
935 #define MAX_ARENAS (SMALL_MEMORY_LIMIT / ARENA_SIZE)
955 #define MAX_POOLS_IN_ARENA (ARENA_SIZE / POOL_SIZE)
956 #if MAX_POOLS_IN_ARENA * POOL_SIZE != ARENA_SIZE
1487 uintptr_t arena_base_next = arena_base + ARENA_SIZE; in arena_map_mark_used()
1594 address = _PyObject_Arena.alloc(_PyObject_Arena.ctx, ARENA_SIZE); in new_arena()
1599 _PyObject_Arena.free(_PyObject_Arena.ctx, address, ARENA_SIZE); in new_arena()
1732 (uintptr_t)p - arenas[arenaindex].address < ARENA_SIZE && in address_in_range()
1830 ARENA_SIZE - POOL_SIZE); in allocate_from_new_pool()
[all …]