Skip to content

Commit

Permalink
class.c: add write barrier for aliases.
Browse files Browse the repository at this point in the history
  • Loading branch information
matz committed May 24, 2021
1 parent a3f779c commit e323cd0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/class.c
Original file line number Diff line number Diff line change
Expand Up @@ -2216,6 +2216,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 e323cd0

Please sign in to comment.