diff options
author | Aaron Patterson <tenderlove@ruby-lang.org> | 2020-10-07 15:20:43 -0700 |
---|---|---|
committer | Aaron Patterson <tenderlove@ruby-lang.org> | 2020-10-07 17:01:14 -0700 |
commit | d5282540953a04401303d540e6f8b388e75500ff (patch) | |
tree | 3f5c3aec841221054c8af60aa0795fd1ee082ff7 /compile.c | |
parent | 62abdbadf2937372924ef68aadff5191fc0f0880 (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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; } |