1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-09 15:10:29 +02:00

Fix semi-space collector for refactor

This commit is contained in:
Andy Wingo 2022-09-16 14:50:01 +02:00
parent 8a51117763
commit 1228e346fa

2
semi.c
View file

@ -161,7 +161,7 @@ static void collect(struct gc_mutator *mut) {
flip(semi);
uintptr_t grey = semi->hp;
if (mut->roots)
gc_trace_mutator_roots(mut->roots, visit, heap);
gc_trace_precise_mutator_roots(mut->roots, visit, heap);
// fprintf(stderr, "pushed %zd bytes in roots\n", space->hp - grey);
while(grey < semi->hp)
grey = scan(heap, gc_ref(grey));