Lines Matching refs:current

968 	gc_root_buffer *current, *last;  in gc_mark_roots()  local
972 current = GC_IDX2PTR(GC_FIRST_ROOT); in gc_mark_roots()
974 while (current != last) { in gc_mark_roots()
975 if (GC_IS_ROOT(current->ref)) { in gc_mark_roots()
976 if (GC_REF_CHECK_COLOR(current->ref, GC_PURPLE)) { in gc_mark_roots()
977 GC_REF_SET_COLOR(current->ref, GC_GREY); in gc_mark_roots()
978 gc_mark_grey(current->ref, stack); in gc_mark_roots()
981 current++; in gc_mark_roots()
1118 gc_root_buffer *current = GC_IDX2PTR(GC_FIRST_ROOT); in gc_scan_roots() local
1121 while (current != last) { in gc_scan_roots()
1122 if (GC_IS_ROOT(current->ref)) { in gc_scan_roots()
1123 if (GC_REF_CHECK_COLOR(current->ref, GC_GREY)) { in gc_scan_roots()
1124 GC_REF_SET_COLOR(current->ref, GC_WHITE); in gc_scan_roots()
1125 gc_scan(current->ref, stack); in gc_scan_roots()
1128 current++; in gc_scan_roots()
1311 gc_root_buffer *current = GC_IDX2PTR(GC_FIRST_ROOT); in gc_collect_roots() local
1315 while (current != last) { in gc_collect_roots()
1316 if (GC_IS_ROOT(current->ref)) { in gc_collect_roots()
1317 if (GC_REF_CHECK_COLOR(current->ref, GC_BLACK)) { in gc_collect_roots()
1318 GC_REF_SET_INFO(current->ref, 0); /* reset GC_ADDRESS() and keep GC_BLACK */ in gc_collect_roots()
1319 gc_remove_from_roots(current); in gc_collect_roots()
1322 current++; in gc_collect_roots()
1332 current = GC_IDX2PTR(idx); in gc_collect_roots()
1333 ref = current->ref; in gc_collect_roots()
1335 current->ref = GC_MAKE_GARBAGE(ref); in gc_collect_roots()
1455 gc_root_buffer *current, *last; in zend_gc_collect_cycles() local
1501 current = GC_IDX2PTR(GC_FIRST_ROOT); in zend_gc_collect_cycles()
1503 if (GC_IS_GARBAGE(current->ref)) { in zend_gc_collect_cycles()
1504 p = GC_GET_PTR(current->ref); in zend_gc_collect_cycles()
1507 current++; in zend_gc_collect_cycles()
1517 current = GC_IDX2PTR(idx); in zend_gc_collect_cycles()
1518 if (GC_IS_GARBAGE(current->ref)) { in zend_gc_collect_cycles()
1519 p = GC_GET_PTR(current->ref); in zend_gc_collect_cycles()
1540 current = GC_IDX2PTR(GC_FIRST_ROOT); in zend_gc_collect_cycles()
1542 if (GC_IS_GARBAGE(current->ref)) { in zend_gc_collect_cycles()
1543 p = GC_GET_PTR(current->ref); in zend_gc_collect_cycles()
1545 gc_remove_nested_data_from_buffer(p, current); in zend_gc_collect_cycles()
1548 current++; in zend_gc_collect_cycles()
1563 current = GC_IDX2PTR(GC_FIRST_ROOT); in zend_gc_collect_cycles()
1565 while (current != last) { in zend_gc_collect_cycles()
1566 if (GC_IS_GARBAGE(current->ref)) { in zend_gc_collect_cycles()
1567 p = GC_GET_PTR(current->ref); in zend_gc_collect_cycles()
1585 current->ref = GC_MAKE_GARBAGE(((char*)obj) - obj->handlers->offset); in zend_gc_collect_cycles()
1598 current++; in zend_gc_collect_cycles()
1602 current = GC_IDX2PTR(GC_FIRST_ROOT); in zend_gc_collect_cycles()
1603 while (current != last) { in zend_gc_collect_cycles()
1604 if (GC_IS_GARBAGE(current->ref)) { in zend_gc_collect_cycles()
1605 p = GC_GET_PTR(current->ref); in zend_gc_collect_cycles()
1606 GC_LINK_UNUSED(current); in zend_gc_collect_cycles()
1610 current++; in zend_gc_collect_cycles()