From d5282540953a04401303d540e6f8b388e75500ff Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Wed, 7 Oct 2020 15:20:43 -0700 Subject: Add missing WB for iseq The write barrier wasn't being called for this object, so add the missing WB. Automatic compaction moved the reference because it didn't know about the relationship (that's how I found the missing WB). --- compile.c | 1 + 1 file changed, 1 insertion(+) (limited to 'compile.c') diff --git a/compile.c b/compile.c index 2672b3b2e0..6aca1230af 100644 --- a/compile.c +++ b/compile.c @@ -8334,6 +8334,7 @@ iseq_compile_each0(rb_iseq_t *iseq, LINK_ANCHOR *const ret, const NODE *node, in debugp_param("lit", node->nd_lit); if (!popped) { ADD_INSN1(ret, line, putobject, node->nd_lit); + RB_OBJ_WRITTEN(iseq, Qundef, node->nd_lit); } break; } -- cgit v1.2.3