Lines Matching refs:obj

192 	struct _store_object *obj;  in gc_zobj_possible_root()  local
201 obj = &EG(objects_store).object_buckets[Z_OBJ_HANDLE_P(zv)].bucket.obj; in gc_zobj_possible_root()
202 if (GC_GET_COLOR(obj->buffered) != GC_PURPLE) { in gc_zobj_possible_root()
203 if (!GC_ADDRESS(obj->buffered)) { in gc_zobj_possible_root()
222 obj = &EG(objects_store).object_buckets[Z_OBJ_HANDLE_P(zv)].bucket.obj; in gc_zobj_possible_root()
226 GC_SET_PURPLE(obj->buffered); in gc_zobj_possible_root()
232 GC_SET_ADDRESS(obj->buffered, newRoot); in gc_zobj_possible_root()
274 struct _store_object *obj = &EG(objects_store).object_buckets[Z_OBJ_HANDLE_P(pz)].bucket.obj; in zval_scan_black() local
276 obj->refcount++; in zval_scan_black()
277 if (GC_GET_COLOR(obj->buffered) != GC_BLACK) { in zval_scan_black()
278 GC_SET_BLACK(obj->buffered); in zval_scan_black()
328 static void zobj_scan_black(struct _store_object *obj, zval *pz TSRMLS_DC) in zobj_scan_black() argument
333 GC_SET_BLACK(obj->buffered); in zobj_scan_black()
380 struct _store_object *obj = &EG(objects_store).object_buckets[Z_OBJ_HANDLE_P(pz)].bucket.obj; in zval_mark_grey() local
382 obj->refcount--; in zval_mark_grey()
383 if (GC_GET_COLOR(obj->buffered) != GC_GREY) { in zval_mark_grey()
385 GC_SET_COLOR(obj->buffered, GC_GREY); in zval_mark_grey()
434 static void zobj_mark_grey(struct _store_object *obj, zval *pz TSRMLS_DC) in zobj_mark_grey() argument
439 if (GC_GET_COLOR(obj->buffered) != GC_GREY) { in zobj_mark_grey()
441 GC_SET_COLOR(obj->buffered, GC_GREY); in zobj_mark_grey()
480 struct _store_object *obj = &EG(objects_store).object_buckets[current->handle].bucket.obj; in gc_mark_roots() local
482 if (GC_GET_COLOR(obj->buffered) == GC_PURPLE) { in gc_mark_roots()
488 zobj_mark_grey(obj, &z TSRMLS_CC); in gc_mark_roots()
490 GC_SET_ADDRESS(obj->buffered, NULL); in gc_mark_roots()
519 struct _store_object *obj = &EG(objects_store).object_buckets[Z_OBJ_HANDLE_P(pz)].bucket.obj; in zval_scan() local
521 if (GC_GET_COLOR(obj->buffered) == GC_GREY) { in zval_scan()
522 if (obj->refcount > 0) { in zval_scan()
523 zobj_scan_black(obj, pz TSRMLS_CC); in zval_scan()
525 GC_SET_COLOR(obj->buffered, GC_WHITE); in zval_scan()
576 struct _store_object *obj = &EG(objects_store).object_buckets[Z_OBJ_HANDLE_P(pz)].bucket.obj; in zobj_scan() local
578 if (GC_GET_COLOR(obj->buffered) == GC_GREY) { in zobj_scan()
579 if (obj->refcount > 0) { in zobj_scan()
580 zobj_scan_black(obj, pz TSRMLS_CC); in zobj_scan()
582 GC_SET_COLOR(obj->buffered, GC_WHITE); in zobj_scan()
639 struct _store_object *obj = &EG(objects_store).object_buckets[Z_OBJ_HANDLE_P(pz)].bucket.obj; in zval_collect_white() local
641 if (obj->buffered == (gc_root_buffer*)GC_WHITE) { in zval_collect_white()
643 GC_SET_PURPLE(obj->buffered); in zval_collect_white()
711 struct _store_object *obj = &EG(objects_store).object_buckets[Z_OBJ_HANDLE_P(pz)].bucket.obj; in zobj_collect_white() local
713 if (obj->buffered == (gc_root_buffer*)GC_WHITE) { in zobj_collect_white()
715 GC_SET_PURPLE(obj->buffered); in zobj_collect_white()
756 struct _store_object *obj = &EG(objects_store).object_buckets[current->handle].bucket.obj; in gc_collect_roots() local
759 GC_SET_ADDRESS(obj->buffered, NULL); in gc_collect_roots()
805 EG(objects_store).object_buckets[Z_OBJ_HANDLE(p->z)].bucket.obj.refcount <= 0 && in gc_collect_cycles()
806 EG(objects_store).object_buckets[Z_OBJ_HANDLE(p->z)].bucket.obj.dtor && in gc_collect_cycles()
810 EG(objects_store).object_buckets[Z_OBJ_HANDLE(p->z)].bucket.obj.refcount++; in gc_collect_cycles()
811 …ject_buckets[Z_OBJ_HANDLE(p->z)].bucket.obj.dtor(EG(objects_store).object_buckets[Z_OBJ_HANDLE(p->… in gc_collect_cycles()
812 EG(objects_store).object_buckets[Z_OBJ_HANDLE(p->z)].bucket.obj.refcount--; in gc_collect_cycles()
826 EG(objects_store).object_buckets[Z_OBJ_HANDLE(p->z)].bucket.obj.refcount <= 0) { in gc_collect_cycles()
827 EG(objects_store).object_buckets[Z_OBJ_HANDLE(p->z)].bucket.obj.refcount = 1; in gc_collect_cycles()