summaryrefslogtreecommitdiff
path: root/compile.c
diff options
context:
space:
mode:
authorAaron Patterson <tenderlove@ruby-lang.org>2020-10-07 15:20:43 -0700
committerAaron Patterson <tenderlove@ruby-lang.org>2020-10-07 17:01:14 -0700
commitd5282540953a04401303d540e6f8b388e75500ff (patch)
tree3f5c3aec841221054c8af60aa0795fd1ee082ff7 /compile.c
parent62abdbadf2937372924ef68aadff5191fc0f0880 (diff)
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).
Diffstat (limited to 'compile.c')
-rw-r--r--compile.c1
1 files changed, 1 insertions, 0 deletions
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;
}