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()
53 static zend_always_inline void* zend_arena_alloc(zend_arena **arena_ptr, size_t size) in zend_arena_alloc()
55 zend_arena *arena = *arena_ptr; in zend_arena_alloc()
64 …UNEXPECTED((size + ZEND_MM_ALIGNED_SIZE(sizeof(zend_arena))) > (size_t)(arena->end - (char*) arena… in zend_arena_alloc()
65 (size + ZEND_MM_ALIGNED_SIZE(sizeof(zend_arena))) : in zend_arena_alloc()
67 zend_arena *new_arena = (zend_arena*)emalloc(arena_size); in zend_arena_alloc()
69 ptr = (char*) new_arena + ZEND_MM_ALIGNED_SIZE(sizeof(zend_arena)); in zend_arena_alloc()
70 new_arena->ptr = (char*) new_arena + ZEND_MM_ALIGNED_SIZE(sizeof(zend_arena)) + size; in zend_arena_alloc()
79 static zend_always_inline void* zend_arena_calloc(zend_arena **arena_ptr, size_t count, size_t unit… in zend_arena_calloc()
94 static zend_always_inline void* zend_arena_checkpoint(zend_arena *arena) in zend_arena_checkpoint()
99 static zend_always_inline void zend_arena_release(zend_arena **arena_ptr, void *checkpoint) in zend_arena_release()
101 zend_arena *arena = *arena_ptr; in zend_arena_release()
105 zend_arena *prev = arena->prev; in zend_arena_release()
113 static zend_always_inline bool zend_arena_contains(zend_arena *arena, void *ptr) in zend_arena_contains()
129 typedef struct _zend_arena zend_arena; typedef
140 static zend_always_inline zend_arena *zend_arena_create(size_t _size) in zend_arena_create()
142 zend_arena *arena = (zend_arena*) emalloc( in zend_arena_create()
143 sizeof(zend_arena) + sizeof(void *) * ZEND_TRACKED_ARENA_SIZE); in zend_arena_create()
150 static zend_always_inline void zend_arena_destroy(zend_arena *arena) in zend_arena_destroy()
153 zend_arena *prev = arena->prev; in zend_arena_destroy()
163 static zend_always_inline void *zend_arena_alloc(zend_arena **arena_ptr, size_t size) in zend_arena_alloc()
165 zend_arena *arena = *arena_ptr; in zend_arena_alloc()
175 static zend_always_inline void* zend_arena_calloc(zend_arena **arena_ptr, size_t count, size_t unit… in zend_arena_calloc()
190 static zend_always_inline void* zend_arena_checkpoint(zend_arena *arena) in zend_arena_checkpoint()
195 static zend_always_inline void zend_arena_release(zend_arena **arena_ptr, void *checkpoint) in zend_arena_release()
198 zend_arena *arena = *arena_ptr; in zend_arena_release()
199 zend_arena *prev = arena->prev; in zend_arena_release()
216 static zend_always_inline bool zend_arena_contains(zend_arena *arena, void *ptr) in zend_arena_contains()