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

ruby-changes:32106

From: tarui <ko1@a...>
Date: Sat, 14 Dec 2013 01:19:54 +0900 (JST)
Subject: [ruby-changes:32106] tarui:r44185 (trunk): * gc.c (wmap_final_func): Bugfix. Should update *value to new pointer.

tarui	2013-12-14 01:19:49 +0900 (Sat, 14 Dec 2013)

  New Revision: 44185

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

  Log:
    * gc.c (wmap_final_func): Bugfix. Should update *value to new pointer.

  Modified files:
    trunk/ChangeLog
    trunk/gc.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 44184)
+++ ChangeLog	(revision 44185)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sat Dec 14 01:15:51 2013  Masaya Tarui  <tarui@r...>
+
+	* gc.c (wmap_final_func): Bugfix. Should update *value to new pointer.
+
 Sat Dec 14 01:05:46 2013  Tanaka Akira  <akr@f...>
 
 	* ext/socket/lib/socket.rb: Don't test $! in "ensure" clause because
Index: gc.c
===================================================================
--- gc.c	(revision 44184)
+++ gc.c	(revision 44185)
@@ -6330,6 +6330,7 @@ wmap_final_func(st_data_t *key, st_data_ https://github.com/ruby/ruby/blob/trunk/gc.c#L6330
     if (j < i) {
 	ptr = ruby_sized_xrealloc2(ptr, j, sizeof(VALUE), i);
 	ptr[0] = j;
+	*value = (st_data_t)ptr;
     }
     return ST_CONTINUE;
 }

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

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