Skip to content

Commit

Permalink
Cherry pick additional write barrier on mruby method alias
Browse files Browse the repository at this point in the history
  • Loading branch information
lopopolo committed Sep 6, 2021
1 parent 78a031c commit 0a9e472
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions artichoke-backend/vendor/mruby/src/class.c
Original file line number Diff line number Diff line change
Expand Up @@ -2210,6 +2210,7 @@ mrb_alias_method(mrb_state *mrb, struct RClass *c, mrb_sym a, mrb_sym b)
}
p->e.env = e;
p->flags |= MRB_PROC_ENVSET;
mrb_field_write_barrier(mrb, (struct RBasic*)p, (struct RBasic*)e);
}
}
mrb_define_method_raw(mrb, c, a, m);
Expand Down

0 comments on commit 0a9e472

Please sign in to comment.