summaryrefslogtreecommitdiffstats
path: root/vm_insnhelper.c
diff options
context:
space:
mode:
authornari <nari@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-08-10 02:40:34 +0000
committernari <nari@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-08-10 02:40:34 +0000
commitcf88411231d6776f9ef31f038a89822c1f760b76 (patch)
tree33e46e9c3f3562be1667ec607fe82cc1710fb72e /vm_insnhelper.c
parentda45e980cf11abe8241c8add831ab2942a9acbeb (diff)
downloadruby-cf88411231d6776f9ef31f038a89822c1f760b76.tar.gz
ruby-cf88411231d6776f9ef31f038a89822c1f760b76.tar.xz
ruby-cf88411231d6776f9ef31f038a89822c1f760b76.zip
* gc.c: reject unused longlife gc.
* debug.c: ditto. * include/ruby/intern.h: ditto. * include/ruby/ruby.h: ditto. * iseq.c: ditto. * node.h: ditto. * vm_insnhelper.c: ditto. * vm_insnhelper.h: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24490 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r--vm_insnhelper.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c
index c8c945204..3053fda1d 100644
--- a/vm_insnhelper.c
+++ b/vm_insnhelper.c
@@ -1058,12 +1058,12 @@ static NODE *
vm_cref_push(rb_thread_t *th, VALUE klass, int noex)
{
rb_control_frame_t *cfp = vm_get_ruby_level_caller_cfp(th, th->cfp);
- NODE *cref = NEW_NODE_LONGLIFE(NODE_BLOCK, klass, 0, 0);
+ NODE *cref = NEW_BLOCK(klass);
cref->nd_file = 0;
cref->nd_visi = noex;
if (cfp) {
- cref->nd_next = (NODE *)rb_gc_write_barrier((VALUE)vm_get_cref(cfp->iseq, cfp->lfp, cfp->dfp));
+ cref->nd_next = vm_get_cref(cfp->iseq, cfp->lfp, cfp->dfp);
}
return cref;