aboutsummaryrefslogtreecommitdiffstats
path: root/thread_sync.c
diff options
context:
space:
mode:
authortenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-01-08 19:22:05 +0000
committertenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-01-08 19:22:05 +0000
commit79c150f8a5af9ad555262646fb9631ac40f0c23f (patch)
treeac6d3b6960f358f88d69c453214a9e305b4a7569 /thread_sync.c
parente9dc6f6076207f84a93ae917ca682d7d2c973f86 (diff)
downloadruby-79c150f8a5af9ad555262646fb9631ac40f0c23f.tar.gz
Mark array as "going to be modified" in `Array#reject!`
Before this patch, if `reject!` is called on a shared array it can mutate the shared array rather than a copy. This patch marks the array as "going to be modified" so that the shared source array isn't mutated. [Bug #15479] [ruby-core:90781] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66756 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread_sync.c')
0 files changed, 0 insertions, 0 deletions