Lines Matching refs:current

976 	gc_root_buffer *current, *last;  in gc_mark_roots()  local
980 current = GC_IDX2PTR(GC_FIRST_ROOT); in gc_mark_roots()
982 while (current != last) { in gc_mark_roots()
983 if (GC_IS_ROOT(current->ref)) { in gc_mark_roots()
984 if (GC_REF_CHECK_COLOR(current->ref, GC_PURPLE)) { in gc_mark_roots()
985 GC_REF_SET_COLOR(current->ref, GC_GREY); in gc_mark_roots()
986 gc_mark_grey(current->ref, stack); in gc_mark_roots()
989 current++; in gc_mark_roots()
1130 gc_root_buffer *current = GC_IDX2PTR(GC_FIRST_ROOT); in gc_scan_roots() local
1133 while (current != last) { in gc_scan_roots()
1134 if (GC_IS_ROOT(current->ref)) { in gc_scan_roots()
1135 if (GC_REF_CHECK_COLOR(current->ref, GC_GREY)) { in gc_scan_roots()
1136 GC_REF_SET_COLOR(current->ref, GC_WHITE); in gc_scan_roots()
1137 gc_scan(current->ref, stack); in gc_scan_roots()
1140 current++; in gc_scan_roots()
1317 gc_root_buffer *current = GC_IDX2PTR(GC_FIRST_ROOT); in gc_collect_roots() local
1321 while (current != last) { in gc_collect_roots()
1322 if (GC_IS_ROOT(current->ref)) { in gc_collect_roots()
1323 if (GC_REF_CHECK_COLOR(current->ref, GC_BLACK)) { in gc_collect_roots()
1324 GC_REF_SET_INFO(current->ref, 0); /* reset GC_ADDRESS() and keep GC_BLACK */ in gc_collect_roots()
1325 gc_remove_from_roots(current); in gc_collect_roots()
1328 current++; in gc_collect_roots()
1338 current = GC_IDX2PTR(idx); in gc_collect_roots()
1339 ref = current->ref; in gc_collect_roots()
1341 current->ref = GC_MAKE_GARBAGE(ref); in gc_collect_roots()
1484 gc_root_buffer *current, *last; in zend_gc_collect_cycles() local
1536 current = GC_IDX2PTR(GC_FIRST_ROOT); in zend_gc_collect_cycles()
1538 if (GC_IS_GARBAGE(current->ref)) { in zend_gc_collect_cycles()
1539 p = GC_GET_PTR(current->ref); in zend_gc_collect_cycles()
1544 current->ref = GC_MAKE_DTOR_GARBAGE(obj); in zend_gc_collect_cycles()
1551 current++; in zend_gc_collect_cycles()
1559 current = GC_IDX2PTR(GC_FIRST_ROOT); in zend_gc_collect_cycles()
1561 if (GC_IS_DTOR_GARBAGE(current->ref)) { in zend_gc_collect_cycles()
1562 p = GC_GET_PTR(current->ref); in zend_gc_collect_cycles()
1563 count -= gc_remove_nested_data_from_buffer(p, current, &stack); in zend_gc_collect_cycles()
1565 current++; in zend_gc_collect_cycles()
1575 current = GC_IDX2PTR(idx); in zend_gc_collect_cycles()
1576 if (GC_IS_DTOR_GARBAGE(current->ref)) { in zend_gc_collect_cycles()
1577 p = GC_GET_PTR(current->ref); in zend_gc_collect_cycles()
1580 current->ref = p; in zend_gc_collect_cycles()
1609 current = GC_IDX2PTR(idx); in zend_gc_collect_cycles()
1610 if (GC_IS_GARBAGE(current->ref)) { in zend_gc_collect_cycles()
1611 p = GC_GET_PTR(current->ref); in zend_gc_collect_cycles()
1620 current->ref = GC_MAKE_GARBAGE(((char*)obj) - obj->handlers->offset); in zend_gc_collect_cycles()
1645 current = GC_IDX2PTR(GC_FIRST_ROOT); in zend_gc_collect_cycles()
1647 while (current != last) { in zend_gc_collect_cycles()
1648 if (GC_IS_GARBAGE(current->ref)) { in zend_gc_collect_cycles()
1649 p = GC_GET_PTR(current->ref); in zend_gc_collect_cycles()
1650 GC_LINK_UNUSED(current); in zend_gc_collect_cycles()
1654 current++; in zend_gc_collect_cycles()