Lines Matching refs:current

1209 	gc_root_buffer *current, *last;  in gc_mark_roots()  local
1213 current = GC_IDX2PTR(GC_FIRST_ROOT); in gc_mark_roots()
1215 while (current != last) { in gc_mark_roots()
1216 if (GC_IS_ROOT(current->ref)) { in gc_mark_roots()
1217 if (GC_REF_CHECK_COLOR(current->ref, GC_PURPLE)) { in gc_mark_roots()
1218 GC_REF_SET_COLOR(current->ref, GC_GREY); in gc_mark_roots()
1219 gc_mark_grey(current->ref, stack); in gc_mark_roots()
1222 current++; in gc_mark_roots()
1382 gc_root_buffer *current; in gc_scan_roots() local
1389 current = GC_IDX2PTR(idx); in gc_scan_roots()
1390 if (GC_IS_ROOT(current->ref)) { in gc_scan_roots()
1391 if (GC_REF_CHECK_COLOR(current->ref, GC_GREY)) { in gc_scan_roots()
1392 GC_REF_SET_COLOR(current->ref, GC_WHITE); in gc_scan_roots()
1393 gc_scan(current->ref, stack); in gc_scan_roots()
1401 current = GC_IDX2PTR(idx); in gc_scan_roots()
1402 if (GC_IS_ROOT(current->ref)) { in gc_scan_roots()
1403 if (GC_REF_CHECK_COLOR(current->ref, GC_GREY)) { in gc_scan_roots()
1404 GC_REF_SET_COLOR(current->ref, GC_WHITE); in gc_scan_roots()
1405 gc_scan(current->ref, stack); in gc_scan_roots()
1630 gc_root_buffer *current = GC_IDX2PTR(GC_FIRST_ROOT); in gc_collect_roots() local
1634 while (current != last) { in gc_collect_roots()
1635 if (GC_IS_ROOT(current->ref)) { in gc_collect_roots()
1636 if (GC_REF_CHECK_COLOR(current->ref, GC_BLACK)) { in gc_collect_roots()
1637 GC_REF_SET_INFO(current->ref, 0); /* reset GC_ADDRESS() and keep GC_BLACK */ in gc_collect_roots()
1638 gc_remove_from_roots(current); in gc_collect_roots()
1641 current++; in gc_collect_roots()
1651 current = GC_IDX2PTR(idx); in gc_collect_roots()
1652 ref = current->ref; in gc_collect_roots()
1654 current->ref = GC_MAKE_GARBAGE(ref); in gc_collect_roots()
1813 gc_root_buffer *current; in gc_call_destructors() local
1819 current = GC_IDX2PTR(idx); in gc_call_destructors()
1820 if (GC_IS_DTOR_GARBAGE(current->ref)) { in gc_call_destructors()
1821 p = GC_GET_PTR(current->ref); in gc_call_destructors()
1823 current->ref = p; in gc_call_destructors()
1927 gc_root_buffer *current, *last; in zend_gc_collect_cycles() local
1978 current = GC_IDX2PTR(GC_FIRST_ROOT); in zend_gc_collect_cycles()
1980 if (GC_IS_GARBAGE(current->ref)) { in zend_gc_collect_cycles()
1981 p = GC_GET_PTR(current->ref); in zend_gc_collect_cycles()
1986 current->ref = GC_MAKE_DTOR_GARBAGE(obj); in zend_gc_collect_cycles()
1993 current++; in zend_gc_collect_cycles()
2001 current = GC_IDX2PTR(GC_FIRST_ROOT); in zend_gc_collect_cycles()
2003 if (GC_IS_DTOR_GARBAGE(current->ref)) { in zend_gc_collect_cycles()
2004 p = GC_GET_PTR(current->ref); in zend_gc_collect_cycles()
2005 count -= gc_remove_nested_data_from_buffer(p, current, &stack); in zend_gc_collect_cycles()
2007 current++; in zend_gc_collect_cycles()
2035 current = GC_IDX2PTR(idx); in zend_gc_collect_cycles()
2036 if (GC_IS_GARBAGE(current->ref)) { in zend_gc_collect_cycles()
2037 p = GC_GET_PTR(current->ref); in zend_gc_collect_cycles()
2046 current->ref = GC_MAKE_GARBAGE(((char*)obj) - obj->handlers->offset); in zend_gc_collect_cycles()
2071 current = GC_IDX2PTR(GC_FIRST_ROOT); in zend_gc_collect_cycles()
2073 while (current != last) { in zend_gc_collect_cycles()
2074 if (GC_IS_GARBAGE(current->ref)) { in zend_gc_collect_cycles()
2075 p = GC_GET_PTR(current->ref); in zend_gc_collect_cycles()
2076 GC_LINK_UNUSED(current); in zend_gc_collect_cycles()
2080 current++; in zend_gc_collect_cycles()