mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Fix missing write barrier in rb_vm_rewrite_cref
Found by wbcheck
This commit is contained in:
parent
443ed45a4e
commit
1e436f2274
1 changed files with 1 additions and 1 deletions
|
@ -975,7 +975,7 @@ rb_vm_rewrite_cref(rb_cref_t *cref, VALUE old_klass, VALUE new_klass)
|
|||
|
||||
#define ADD_NEW_CREF(new_cref) \
|
||||
if (new_cref_tail) { \
|
||||
new_cref_tail->next = new_cref; \
|
||||
RB_OBJ_WRITE(new_cref_tail, &new_cref_tail->next, new_cref); \
|
||||
} else { \
|
||||
new_cref_head = new_cref; \
|
||||
} \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue