diff options
| author | John Hawthorn <john@hawthorn.email> | 2026-04-26 02:57:37 -0700 |
|---|---|---|
| committer | Takashi Kokubun <takashikkbn@gmail.com> | 2026-05-05 13:27:43 -0700 |
| commit | 0e9a0ad996e7f85645948760a7c652e0d47e138a (patch) | |
| tree | 5e4e75414cd69a15bd317c941db6ac1912ea8d19 | |
| parent | c6ea22c967819ce5276169edc20686a096bbf757 (diff) | |
Fix missing writebarrier on refined orig_me
Caught by wbcheck. The same field is written with RB_OBJ_WRITE
in rb_method_definition_set.
| -rw-r--r-- | vm_method.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_method.c b/vm_method.c index fcb2f28f8d..e365789841 100644 --- a/vm_method.c +++ b/vm_method.c @@ -1360,7 +1360,7 @@ rb_method_entry_make(VALUE klass, ID mid, VALUE defined_class, rb_method_visibil rb_add_refined_method_entry(refined_class, mid); if (search_superclass) { rb_method_entry_t *me = lookup_method_table(refined_class, mid); - me->def->body.refined.orig_me = search_method0(refined_class, mid, NULL, true); + RB_OBJ_WRITE(me, &me->def->body.refined.orig_me, search_method0(refined_class, mid, NULL, true)); } } if (type == VM_METHOD_TYPE_REFINED) { |
