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

ruby-changes:35854

From: usa <ko1@a...>
Date: Wed, 15 Oct 2014 16:20:06 +0900 (JST)
Subject: [ruby-changes:35854] usa:r47936 (ruby_2_0_0): merge revision(s) 47896: [Backport #10369]

usa	2014-10-15 16:19:49 +0900 (Wed, 15 Oct 2014)

  New Revision: 47936

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

  Log:
    merge revision(s) 47896: [Backport #10369]
    
    * array.c (ary_recycle_hash): add RB_GC_GUARD
      (rb_ary_diff): remove volatile
      [Bug #10369]

  Modified directories:
    branches/ruby_2_0_0/
  Modified files:
    branches/ruby_2_0_0/ChangeLog
    branches/ruby_2_0_0/array.c
    branches/ruby_2_0_0/version.h
Index: ruby_2_0_0/array.c
===================================================================
--- ruby_2_0_0/array.c	(revision 47935)
+++ ruby_2_0_0/array.c	(revision 47936)
@@ -3781,6 +3781,7 @@ ary_recycle_hash(VALUE hash) https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/array.c#L3781
 	RHASH(hash)->ntbl = 0;
 	st_free_table(tbl);
     }
+    RB_GC_GUARD(hash);
 }
 
 /*
@@ -3804,7 +3805,7 @@ static VALUE https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/array.c#L3805
 rb_ary_diff(VALUE ary1, VALUE ary2)
 {
     VALUE ary3;
-    volatile VALUE hash;
+    VALUE hash;
     long i;
 
     hash = ary_make_hash(to_ary(ary2));
Index: ruby_2_0_0/ChangeLog
===================================================================
--- ruby_2_0_0/ChangeLog	(revision 47935)
+++ ruby_2_0_0/ChangeLog	(revision 47936)
@@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/ChangeLog#L1
+Wed Oct 15 16:19:39 2014  Eric Wong  <e@8...>
+
+	* array.c (ary_recycle_hash): add RB_GC_GUARD
+	  (rb_ary_diff): remove volatile
+	  [Bug #10369]
+
 Wed Oct 15 16:13:28 2014  Nobuyoshi Nakada  <nobu@r...>
 
 	* dir.c (dir_s_aref): fix rdoc.  `Dir.glob` allows an array but
Index: ruby_2_0_0/version.h
===================================================================
--- ruby_2_0_0/version.h	(revision 47935)
+++ ruby_2_0_0/version.h	(revision 47936)
@@ -1,6 +1,6 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/version.h#L1
 #define RUBY_VERSION "2.0.0"
 #define RUBY_RELEASE_DATE "2014-10-15"
-#define RUBY_PATCHLEVEL 583
+#define RUBY_PATCHLEVEL 584
 
 #define RUBY_RELEASE_YEAR 2014
 #define RUBY_RELEASE_MONTH 10

Property changes on: ruby_2_0_0
___________________________________________________________________
Modified: svn:mergeinfo
   Merged /trunk:r47896


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

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