ruby-changes:21063
From: naruse <ko1@a...>
Date: Mon, 29 Aug 2011 15:51:57 +0900 (JST)
Subject: [ruby-changes:21063] naruse:r33112 (trunk): Use RB_GC_GUARD.
naruse 2011-08-29 15:51:48 +0900 (Mon, 29 Aug 2011) New Revision: 33112 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=33112 Log: Use RB_GC_GUARD. Modified files: trunk/vm_insnhelper.c Index: vm_insnhelper.c =================================================================== --- vm_insnhelper.c (revision 33111) +++ vm_insnhelper.c (revision 33112) @@ -386,7 +386,7 @@ } static inline VALUE -vm_call_cfunc(rb_thread_t *th, volatile rb_control_frame_t *reg_cfp, +vm_call_cfunc(rb_thread_t *th, rb_control_frame_t *reg_cfp, int num, volatile VALUE recv, const rb_block_t *blockptr, const rb_method_entry_t *me) { @@ -406,6 +406,7 @@ if (reg_cfp != th->cfp + 1) { rb_bug("cfp consistency error - send"); } + RB_GC_GUARD(reg_cfp); vm_pop_frame(th); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/