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

ruby-changes:33463

From: akr <ko1@a...>
Date: Wed, 9 Apr 2014 23:30:55 +0900 (JST)
Subject: [ruby-changes:33463] akr:r45542 (trunk): * gc.c (mark_current_machine_context): Call SET_STACK_END.

akr	2014-04-09 23:30:46 +0900 (Wed, 09 Apr 2014)

  New Revision: 45542

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

  Log:
    * gc.c (mark_current_machine_context): Call SET_STACK_END.
      This reverts a hunk of r40703 by ko1.
      This fixes [ruby-dev:48098] [Bug #9717].

  Modified files:
    trunk/ChangeLog
    trunk/gc.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 45541)
+++ ChangeLog	(revision 45542)
@@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Wed Apr  9 23:22:44 2014  Tanaka Akira  <akr@f...>
+
+	* gc.c (mark_current_machine_context): Call SET_STACK_END.
+	  This reverts a hunk of r40703 by ko1.
+	  This fixes [ruby-dev:48098] [Bug #9717].
+
 Wed Apr  9 21:02:04 2014  Tanaka Akira  <akr@f...>
 
 	* process.c (OBJ2UID1): Defined even if getpwnam_r is not usable.
Index: gc.c
===================================================================
--- gc.c	(revision 45541)
+++ gc.c	(revision 45542)
@@ -3507,6 +3507,7 @@ mark_current_machine_context(rb_objspace https://github.com/ruby/ruby/blob/trunk/gc.c#L3507
     /* This assumes that all registers are saved into the jmp_buf (and stack) */
     rb_setjmp(save_regs_gc_mark.j);
 
+    SET_STACK_END;
     GET_STACK_BOUNDS(stack_start, stack_end, 1);
 
     mark_locations_array(objspace, save_regs_gc_mark.v, numberof(save_regs_gc_mark.v));

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

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