Lines Matching refs:object_buckets

32 …objects->object_buckets = (zend_object_store_bucket *) emalloc(init_size * sizeof(zend_object_stor…  in zend_objects_store_init()
36 memset(&objects->object_buckets[0], 0, sizeof(zend_object_store_bucket)); in zend_objects_store_init()
41 efree(objects->object_buckets); in zend_objects_store_destroy()
42 objects->object_buckets = NULL; in zend_objects_store_destroy()
50 if (objects->object_buckets[i].valid) { in zend_objects_store_call_destructors()
51 struct _store_object *obj = &objects->object_buckets[i].bucket.obj; in zend_objects_store_call_destructors()
53 if (!objects->object_buckets[i].destructor_called) { in zend_objects_store_call_destructors()
54 objects->object_buckets[i].destructor_called = 1; in zend_objects_store_call_destructors()
58 obj = &objects->object_buckets[i].bucket.obj; in zend_objects_store_call_destructors()
70 if (!objects->object_buckets) { in zend_objects_store_mark_destructed()
74 if (objects->object_buckets[i].valid) { in zend_objects_store_mark_destructed()
75 objects->object_buckets[i].destructor_called = 1; in zend_objects_store_mark_destructed()
85 if (objects->object_buckets[i].valid) { in zend_objects_store_free_object_storage()
86 struct _store_object *obj = &objects->object_buckets[i].bucket.obj; in zend_objects_store_free_object_storage()
90 objects->object_buckets[i].valid = 0; in zend_objects_store_free_object_storage()
109 EG(objects_store).free_list_head = EG(objects_store).object_buckets[handle].bucket.free_list.next; in zend_objects_store_put()
113 …EG(objects_store).object_buckets = (zend_object_store_bucket *) erealloc(EG(objects_store).object_… in zend_objects_store_put()
117 obj = &EG(objects_store).object_buckets[handle].bucket.obj; in zend_objects_store_put()
118 EG(objects_store).object_buckets[handle].destructor_called = 0; in zend_objects_store_put()
119 EG(objects_store).object_buckets[handle].valid = 1; in zend_objects_store_put()
139 return EG(objects_store).object_buckets[handle].bucket.obj.refcount; in zend_objects_store_get_refcount()
146 EG(objects_store).object_buckets[handle].bucket.obj.refcount++; in zend_objects_store_add_ref()
157 EG(objects_store).object_buckets[handle].bucket.obj.refcount++; in zend_objects_store_add_ref_by_handle()
161 …EG(objects_store).object_buckets[handle].bucket.free_list.next = EG(objects_store).free_list_head;…
163 EG(objects_store).object_buckets[handle].valid = 0;
186 if (!EG(objects_store).object_buckets) { in zend_objects_store_del_ref_by_handle_ex()
190 obj = &EG(objects_store).object_buckets[handle].bucket.obj; in zend_objects_store_del_ref_by_handle_ex()
196 if (EG(objects_store).object_buckets[handle].valid) { in zend_objects_store_del_ref_by_handle_ex()
198 if (!EG(objects_store).object_buckets[handle].destructor_called) { in zend_objects_store_del_ref_by_handle_ex()
199 EG(objects_store).object_buckets[handle].destructor_called = 1; in zend_objects_store_del_ref_by_handle_ex()
214 obj = &EG(objects_store).object_buckets[handle].bucket.obj; in zend_objects_store_del_ref_by_handle_ex()
252 obj = &EG(objects_store).object_buckets[handle].bucket.obj; in zend_objects_store_clone_obj()
259 obj = &EG(objects_store).object_buckets[handle].bucket.obj; in zend_objects_store_clone_obj()
263 EG(objects_store).object_buckets[handle].bucket.obj.handlers = retval.handlers; in zend_objects_store_clone_obj()
272 return EG(objects_store).object_buckets[handle].bucket.obj.object; in zend_object_store_get_object()
280 return EG(objects_store).object_buckets[handle].bucket.obj.object; in zend_object_store_get_object_by_handle()
294 EG(objects_store).object_buckets[handle].bucket.obj.object = object; in zend_object_store_set_object()
302 zend_object_store_bucket *obj_bucket = &EG(objects_store).object_buckets[handle]; in zend_object_store_ctor_failed()