Lines Matching refs:next
152 root->next->prev = root->prev; in gc_remove_from_roots()
153 root->prev->next = root->next; in gc_remove_from_roots()
161 root->next->prev = root->prev; in gc_remove_from_additional_roots()
162 root->prev->next = root->next; in gc_remove_from_additional_roots()
180 gc_globals->roots.next = &gc_globals->roots; in gc_globals_ctor_ex()
185 gc_globals->to_free.next = &gc_globals->to_free; in gc_globals_ctor_ex()
234 GC_G(roots).next = &GC_G(roots); in gc_reset()
237 GC_G(to_free).next = &GC_G(to_free); in gc_reset()
312 newRoot->next = GC_G(roots).next; in gc_possible_root()
314 GC_G(roots).next->prev = newRoot; in gc_possible_root()
315 GC_G(roots).next = newRoot; in gc_possible_root()
335 additional_buffer = additional_buffer->next; in gc_find_additional_buffer()
364 GC_G(next_to_free) = root->next; in gc_remove_from_buffer()
590 gc_root_buffer *current = GC_G(roots).next; in gc_mark_roots()
596 current = current->next; in gc_mark_roots()
702 gc_root_buffer *current = GC_G(roots).next; in gc_scan_roots()
706 current = current->next; in gc_scan_roots()
739 new_buffer->next = GC_G(additional_buffer); in gc_add_garbage()
753 buf->next = GC_G(roots).next; in gc_add_garbage()
755 GC_G(roots).next->prev = buf; in gc_add_garbage()
756 GC_G(roots).next = buf; in gc_add_garbage()
903 gc_root_buffer *current = GC_G(roots).next;
907 gc_root_buffer *next = current->next; local
916 current = next;
919 current = GC_G(roots).next;
924 current = current->next;
928 if (GC_G(roots).next != &GC_G(roots)) {
929 if (GC_G(to_free).next == &GC_G(to_free)) {
931 GC_G(to_free).next = GC_G(roots).next;
933 GC_G(to_free).next->prev = &GC_G(to_free);
934 GC_G(to_free).prev->next = &GC_G(to_free);
937 GC_G(to_free).prev->next = GC_G(roots).next;
938 GC_G(roots).next->prev = GC_G(to_free).prev;
939 GC_G(roots).prev->next = &GC_G(to_free);
943 GC_G(roots).next = &GC_G(roots);
1061 if (GC_G(roots).next != &GC_G(roots)) {
1062 gc_root_buffer *current, *next, *orig_next_to_free; local
1097 if (GC_G(to_free).next == &GC_G(to_free)) {
1104 to_free.next = GC_G(to_free).next;
1106 to_free.next->prev = &to_free;
1107 to_free.prev->next = &to_free;
1110 GC_G(to_free).next = &GC_G(to_free);
1124 current = to_free.next;
1127 current = current->next;
1131 current = to_free.next;
1134 GC_G(next_to_free) = current->next;
1154 current = to_free.next;
1156 GC_G(next_to_free) = current->next;
1167 current = to_free.next;
1170 GC_G(next_to_free) = current->next;
1202 current = to_free.next;
1204 next = current->next;
1211 current = next;
1215 gc_additional_buffer *next = GC_G(additional_buffer)->next; local
1217 GC_G(additional_buffer) = next;