mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
array.c: GC guard
* array.c (rb_ary_splice): prevent replacing array from GC. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47683 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c29b274b2a
commit
88cbfc0d10
1 changed files with 1 additions and 0 deletions
1
array.c
1
array.c
|
@ -1606,6 +1606,7 @@ rb_ary_splice(VALUE ary, long beg, long len, VALUE rpl)
|
|||
MEMMOVE(RARRAY_PTR(ary) + beg, RARRAY_CONST_PTR(rpl), VALUE, rlen);
|
||||
}
|
||||
}
|
||||
RB_GC_GUARD(rpl);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Reference in a new issue