summaryrefslogtreecommitdiff
path: root/array.c
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-10-15 06:55:27 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-10-15 06:55:27 +0000
commit172cc121b9d8308306167515cf97df48cbac637a (patch)
treea9d41dbb0d91ce1db0928c90e6423838b1b286b1 /array.c
parent9c7e5a85d1f51467061864363eab243ae32699ac (diff)
merge revision(s) 47683: [Backport #10281]
array.c: GC guard * array.c (rb_ary_splice): prevent replacing array from GC. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@47930 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'array.c')
-rw-r--r--array.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/array.c b/array.c
index b302b8a268..57999fbd97 100644
--- a/array.c
+++ b/array.c
@@ -1471,6 +1471,7 @@ rb_ary_splice(VALUE ary, long beg, long len, VALUE rpl)
MEMMOVE(RARRAY_PTR(ary) + beg, RARRAY_PTR(rpl), VALUE, rlen);
}
}
+ RB_GC_GUARD(rpl);
}
void