From b94be7de5a8848993eb165e9484fe52c2e6696c6 Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Thu, 26 Sep 2024 02:57:57 +0900 Subject: [PATCH] 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. --- src/gc.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/gc.c b/src/gc.c index 32b39a59d..a9549e730 100644 --- a/src/gc.c +++ b/src/gc.c @@ -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); } }