Lines Matching refs:objects

29 ZEND_API void zend_objects_store_init(zend_objects_store *objects, uint32_t init_size)  in zend_objects_store_init()  argument
31 objects->object_buckets = (zend_object **) emalloc(init_size * sizeof(zend_object*)); in zend_objects_store_init()
32 objects->top = 1; /* Skip 0 so that handles are true */ in zend_objects_store_init()
33 objects->size = init_size; in zend_objects_store_init()
34 objects->free_list_head = -1; in zend_objects_store_init()
35 memset(&objects->object_buckets[0], 0, sizeof(zend_object*)); in zend_objects_store_init()
38 ZEND_API void zend_objects_store_destroy(zend_objects_store *objects) in zend_objects_store_destroy() argument
40 efree(objects->object_buckets); in zend_objects_store_destroy()
41 objects->object_buckets = NULL; in zend_objects_store_destroy()
44 ZEND_API void 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()
48 for (i = 1; i < objects->top; i++) { in zend_objects_store_call_destructors()
49 zend_object *obj = objects->object_buckets[i]; in zend_objects_store_call_destructors()
62 ZEND_API void zend_objects_store_mark_destructed(zend_objects_store *objects) in zend_objects_store_mark_destructed() argument
64 if (objects->object_buckets && objects->top > 1) { in zend_objects_store_mark_destructed()
65 zend_object **obj_ptr = objects->object_buckets + 1; in zend_objects_store_mark_destructed()
66 zend_object **end = objects->object_buckets + objects->top; in zend_objects_store_mark_destructed()
79 ZEND_API void zend_objects_store_free_object_storage(zend_objects_store *objects) in zend_objects_store_free_object_storage() argument
83 if (objects->top <= 1) { in zend_objects_store_free_object_storage()
88 end = objects->object_buckets + 1; in zend_objects_store_free_object_storage()
89 obj_ptr = objects->object_buckets + objects->top; in zend_objects_store_free_object_storage()