Lines Matching refs:ptr
29 char *ptr; member
38 arena->ptr = (char*) arena + ZEND_MM_ALIGNED_SIZE(sizeof(zend_arena)); in zend_arena_create()
56 char *ptr = arena->ptr; in zend_arena_alloc() local
60 if (EXPECTED(size <= (size_t)(arena->end - ptr))) { in zend_arena_alloc()
61 arena->ptr = ptr + 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()
76 return (void*) ptr; in zend_arena_alloc()
96 return arena->ptr; in zend_arena_checkpoint()
110 arena->ptr = (char*)checkpoint; in zend_arena_release()
113 static zend_always_inline zend_bool zend_arena_contains(zend_arena *arena, void *ptr) in zend_arena_contains() argument
116 if ((char*)ptr > (char*)arena && (char*)ptr <= arena->ptr) { in zend_arena_contains()
132 void **ptr; member
144 arena->ptr = &arena->ptrs[0]; in zend_arena_create()
154 void **ptr; in zend_arena_destroy() local
155 for (ptr = arena->ptrs; ptr < arena->ptr; ptr++) { in zend_arena_destroy()
156 efree(*ptr); in zend_arena_destroy()
166 if (arena->ptr == arena->end) { in zend_arena_alloc()
172 return *arena->ptr++ = emalloc(size); in zend_arena_alloc()
192 return arena->ptr; in zend_arena_checkpoint()
201 if (arena->ptr == (void **) checkpoint) { in zend_arena_release()
204 if (arena->ptr == arena->ptrs) { in zend_arena_release()
207 arena->ptr--; in zend_arena_release()
208 efree(*arena->ptr); in zend_arena_release()
216 static zend_always_inline zend_bool zend_arena_contains(zend_arena *arena, void *ptr) in zend_arena_contains() argument