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

ruby-changes:28993

From: nobu <ko1@a...>
Date: Mon, 3 Jun 2013 17:16:38 +0900 (JST)
Subject: [ruby-changes:28993] nobu:r41045 (trunk): * vm_insnhelper.c (vm_yield_setup_block_args): add comment for r41041.

nobu	2013-06-03 17:16:27 +0900 (Mon, 03 Jun 2013)

  New Revision: 41045

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

  Log:
    * vm_insnhelper.c (vm_yield_setup_block_args): add comment for r41041.

  Modified files:
    trunk/vm_insnhelper.c

Index: vm_insnhelper.c
===================================================================
--- vm_insnhelper.c	(revision 41044)
+++ vm_insnhelper.c	(revision 41045)
@@ -2213,6 +2213,8 @@ vm_yield_setup_block_args(rb_thread_t *t https://github.com/ruby/ruby/blob/trunk/vm_insnhelper.c#L2213
     }
     else {
 	argv[0] = arg0; /* rb_check_array_type(arg0) may change argv */
+	/* when to_ary method is invoked and the stack is overwritten, */
+	/* so need to restore argv[0]. */
     }
 
     /* keyword argument */

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

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