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
47 if (objects->top > 1) { in zend_objects_store_call_destructors()
49 for (i = 1; i < objects->top; i++) { in zend_objects_store_call_destructors()
50 zend_object *obj = objects->object_buckets[i]; in zend_objects_store_call_destructors()
68 ZEND_API void zend_objects_store_mark_destructed(zend_objects_store *objects) in zend_objects_store_mark_destructed() argument
70 if (objects->object_buckets && objects->top > 1) { in zend_objects_store_mark_destructed()
71 zend_object **obj_ptr = objects->object_buckets + 1; in zend_objects_store_mark_destructed()
72 zend_object **end = objects->object_buckets + objects->top; in zend_objects_store_mark_destructed()
85 ZEND_API void zend_objects_store_free_object_storage(zend_objects_store *objects, zend_bool fast_sh… in zend_objects_store_free_object_storage() argument
89 if (objects->top <= 1) { in zend_objects_store_free_object_storage()
94 end = objects->object_buckets + 1; in zend_objects_store_free_object_storage()
95 obj_ptr = objects->object_buckets + objects->top; in zend_objects_store_free_object_storage()