Lines Matching refs:objects
28 ZEND_API void ZEND_FASTCALL zend_objects_store_init(zend_objects_store *objects, uint32_t init_size) in zend_objects_store_init() argument
30 objects->object_buckets = (zend_object **) emalloc(init_size * sizeof(zend_object*)); in zend_objects_store_init()
31 objects->top = 1; /* Skip 0 so that handles are true */ in zend_objects_store_init()
32 objects->size = init_size; in zend_objects_store_init()
33 objects->free_list_head = -1; in zend_objects_store_init()
34 memset(&objects->object_buckets[0], 0, sizeof(zend_object*)); in zend_objects_store_init()
37 ZEND_API void ZEND_FASTCALL zend_objects_store_destroy(zend_objects_store *objects) in zend_objects_store_destroy() argument
39 efree(objects->object_buckets); in zend_objects_store_destroy()
40 objects->object_buckets = NULL; in zend_objects_store_destroy()
43 ZEND_API void ZEND_FASTCALL zend_objects_store_call_destructors(zend_objects_store *objects) in zend_objects_store_call_destructors() argument
46 if (objects->top > 1) { in zend_objects_store_call_destructors()
50 for (i = 1; i < objects->top; i++) { in zend_objects_store_call_destructors()
51 zend_object *obj = objects->object_buckets[i]; in zend_objects_store_call_destructors()
70 ZEND_API void ZEND_FASTCALL zend_objects_store_mark_destructed(zend_objects_store *objects) in zend_objects_store_mark_destructed() argument
72 if (objects->object_buckets && objects->top > 1) { in zend_objects_store_mark_destructed()
73 zend_object **obj_ptr = objects->object_buckets + 1; in zend_objects_store_mark_destructed()
74 zend_object **end = objects->object_buckets + objects->top; in zend_objects_store_mark_destructed()
87 ZEND_API void ZEND_FASTCALL zend_objects_store_free_object_storage(zend_objects_store *objects, boo… in zend_objects_store_free_object_storage() argument
91 if (objects->top <= 1) { in zend_objects_store_free_object_storage()
97 end = objects->object_buckets + 1; in zend_objects_store_free_object_storage()
98 obj_ptr = objects->object_buckets + objects->top; in zend_objects_store_free_object_storage()