Skip to content

Commit a50794d

Browse files
committed
merge revision(s) r47896: [Backport ruby#10369]
* array.c (ary_recycle_hash): add RB_GC_GUARD (rb_ary_diff): remove volatile [Bug ruby#10369] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@47949 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent 22a193f commit a50794d

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

ChangeLog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
Wed Oct 15 23:13:43 2014 Eric Wong <[email protected]>
2+
3+
* array.c (ary_recycle_hash): add RB_GC_GUARD
4+
(rb_ary_diff): remove volatile
5+
[Bug #10369]
6+
17
Wed Oct 15 23:10:07 2014 Nobuyoshi Nakada <[email protected]>
28

39
* dir.c (dir_s_aref): fix rdoc. `Dir.glob` allows an array but

array.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3949,6 +3949,7 @@ ary_recycle_hash(VALUE hash)
39493949
RHASH(hash)->ntbl = 0;
39503950
st_free_table(tbl);
39513951
}
3952+
RB_GC_GUARD(hash);
39523953
}
39533954

39543955
/*
@@ -3972,7 +3973,7 @@ static VALUE
39723973
rb_ary_diff(VALUE ary1, VALUE ary2)
39733974
{
39743975
VALUE ary3;
3975-
volatile VALUE hash;
3976+
VALUE hash;
39763977
long i;
39773978

39783979
hash = ary_make_hash(to_ary(ary2));

version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#define RUBY_VERSION "2.1.4"
22
#define RUBY_RELEASE_DATE "2014-10-15"
3-
#define RUBY_PATCHLEVEL 251
3+
#define RUBY_PATCHLEVEL 252
44

55
#define RUBY_RELEASE_YEAR 2014
66
#define RUBY_RELEASE_MONTH 10

0 commit comments

Comments
 (0)