Lines Matching refs:zend_arena
26 typedef struct _zend_arena zend_arena; typedef
31 zend_arena *prev;
34 static zend_always_inline zend_arena* zend_arena_create(size_t size) in zend_arena_create()
36 zend_arena *arena = (zend_arena*)emalloc(size); in zend_arena_create()
38 arena->ptr = (char*) arena + ZEND_MM_ALIGNED_SIZE(sizeof(zend_arena)); in zend_arena_create()
44 static zend_always_inline void zend_arena_destroy(zend_arena *arena) in zend_arena_destroy()
47 zend_arena *prev = arena->prev; in zend_arena_destroy()
55 static zend_always_inline void* zend_arena_alloc(zend_arena **arena_ptr, size_t size) in zend_arena_alloc()
57 zend_arena *arena = *arena_ptr; 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()
69 zend_arena *new_arena = (zend_arena*)emalloc(arena_size); in zend_arena_alloc()
71 ptr = (char*) new_arena + 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()
81 static zend_always_inline void* zend_arena_calloc(zend_arena **arena_ptr, size_t count, size_t unit… in zend_arena_calloc()
96 static zend_always_inline void* zend_arena_checkpoint(zend_arena *arena) in zend_arena_checkpoint()
101 static zend_always_inline void zend_arena_release(zend_arena **arena_ptr, void *checkpoint) in zend_arena_release()
103 zend_arena *arena = *arena_ptr; in zend_arena_release()
107 zend_arena *prev = arena->prev; in zend_arena_release()