mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
gc.c (incremental_marking_phase): clear gcnext for debugging
This commit is contained in:
@@ -1048,6 +1048,7 @@ incremental_marking_phase(mrb_state *mrb, mrb_gc *gc, size_t limit)
|
||||
while (gc->gray_list && tried_marks < limit) {
|
||||
struct RBasic *obj = gc->gray_list;
|
||||
gc->gray_list = obj->gcnext;
|
||||
obj->gcnext = NULL;
|
||||
gc_mark_children(mrb, gc, obj);
|
||||
tried_marks += gc_gray_counts(mrb, gc, obj);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user