gc.c (mark_context): no need to mark ci->blk; ref #5791

Since the passed block is referenced from the stack after the last
commit.
This commit is contained in:
Yukihiro "Matz" Matsumoto
2024-09-26 02:57:57 +09:00
parent 9c5812a463
commit b94be7de5a
-1
View File
@@ -582,7 +582,6 @@ mark_context(mrb_state *mrb, struct mrb_context *c)
if (c->cibase) {
for (ci = c->cibase; ci <= c->ci; ci++) {
mrb_gc_mark(mrb, (struct RBasic*)ci->proc);
mrb_gc_mark(mrb, (struct RBasic*)ci->blk);
mrb_gc_mark(mrb, (struct RBasic*)ci->u.target_class);
}
}