diff options
Diffstat (limited to 'vm_insnhelper.h')
-rw-r--r-- | vm_insnhelper.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vm_insnhelper.h b/vm_insnhelper.h index 74ca8450e4..838a652672 100644 --- a/vm_insnhelper.h +++ b/vm_insnhelper.h @@ -154,9 +154,9 @@ extern VALUE ruby_vm_const_missing_count; #define COPY_CREF(c1, c2) do { \ NODE *__tmp_c2 = (c2); \ - c1->nd_clss = __tmp_c2->nd_clss; \ - c1->nd_visi = __tmp_c2->nd_visi; \ - c1->nd_next = __tmp_c2->nd_next; \ + c1->nd_clss = rb_gc_write_barrier((VALUE)__tmp_c2->nd_clss);\ + c1->nd_visi = __tmp_c2->nd_visi;\ + c1->nd_next = (NODE *)rb_gc_write_barrier((VALUE)__tmp_c2->nd_next);\ } while (0) #define CALL_METHOD(num, blockptr, flag, id, mn, recv) do { \ |