[前][次][番号順一覧][スレッド一覧]

ruby-changes:21077

From: usa <ko1@a...>
Date: Tue, 30 Aug 2011 22:29:09 +0900 (JST)
Subject: [ruby-changes:21077] usa:r33126 (trunk): * vm_insnhelper.c (vm_call_cfunc): revert r33112. RB_GC_GUARD macro

usa	2011-08-30 22:28:58 +0900 (Tue, 30 Aug 2011)

  New Revision: 33126

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=33126

  Log:
    * vm_insnhelper.c (vm_call_cfunc): revert r33112.  RB_GC_GUARD macro
      protect a VALUE from GC.  It's not for general anti-optimizing
      purpose.

  Modified files:
    trunk/ChangeLog
    trunk/vm_insnhelper.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 33125)
+++ ChangeLog	(revision 33126)
@@ -1,3 +1,9 @@
+Tue Aug 30 22:25:38 2011  NAKAMURA Usaku  <usa@r...>
+
+	* vm_insnhelper.c (vm_call_cfunc): revert r33112.  RB_GC_GUARD macro
+	  protect a VALUE from GC.  It's not for general anti-optimizing
+	  purpose.
+
 Tue Aug 30 11:06:19 2011  NARUSE, Yui  <naruse@r...>
 
 	* ext/json: Merge json gem 1.5.4+ (2149f4185c598fb97db1).
Index: vm_insnhelper.c
===================================================================
--- vm_insnhelper.c	(revision 33125)
+++ vm_insnhelper.c	(revision 33126)
@@ -386,7 +386,7 @@
 }
 
 static inline VALUE
-vm_call_cfunc(rb_thread_t *th, rb_control_frame_t *reg_cfp,
+vm_call_cfunc(rb_thread_t *th, volatile rb_control_frame_t *reg_cfp,
 	      int num, volatile VALUE recv, const rb_block_t *blockptr,
 	      const rb_method_entry_t *me)
 {
@@ -406,7 +406,6 @@
     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/

[前][次][番号順一覧][スレッド一覧]