Lines Matching refs:size
34 static zend_always_inline zend_arena* zend_arena_create(size_t size) in zend_arena_create() argument
36 zend_arena *arena = (zend_arena*)emalloc(size); in zend_arena_create()
39 arena->end = (char*) arena + size; in zend_arena_create()
55 static zend_always_inline void* zend_arena_alloc(zend_arena **arena_ptr, size_t size) in zend_arena_alloc() argument
60 size = ZEND_MM_ALIGNED_SIZE(size); in zend_arena_alloc()
62 if (EXPECTED(size <= (size_t)(arena->end - ptr))) { in zend_arena_alloc()
63 arena->ptr = ptr + size; in zend_arena_alloc()
66 …UNEXPECTED((size + ZEND_MM_ALIGNED_SIZE(sizeof(zend_arena))) > (size_t)(arena->end - (char*) arena… in zend_arena_alloc()
67 (size + ZEND_MM_ALIGNED_SIZE(sizeof(zend_arena))) : in zend_arena_alloc()
72 new_arena->ptr = (char*) new_arena + ZEND_MM_ALIGNED_SIZE(sizeof(zend_arena)) + size; in zend_arena_alloc()
84 size_t size; in zend_arena_calloc() local
87 size = zend_safe_address(unit_size, count, 0, &overflow); in zend_arena_calloc()
91 ret = zend_arena_alloc(arena_ptr, size); in zend_arena_calloc()
92 memset(ret, 0, size); in zend_arena_calloc()