summaryrefslogtreecommitdiff
path: root/vm_insnhelper.h
diff options
context:
space:
mode:
authornari <nari@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-05-16 08:27:36 +0000
committernari <nari@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-05-16 08:27:36 +0000
commit832d5a832961b8cd6b58ec91079fa24af099f458 (patch)
treeb5b5064e635500603e58e362d74a9a920dbd87b6 /vm_insnhelper.h
parent8c7172605b2bad7935c85ec99ccd864ca17f5d65 (diff)
* iseq.c (rb_iseq_clone): use longlife object and insert write barrier.
* vm_insnhelper.c (vm_cref_push): ditto. * vm_insnhelper.h (COPY_CREF): insert write barrier. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23441 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_insnhelper.h')
-rw-r--r--vm_insnhelper.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/vm_insnhelper.h b/vm_insnhelper.h
index 74ca845..838a652 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 { \