summaryrefslogtreecommitdiff
path: root/spec/ruby/core/array/array_spec.rb
diff options
context:
space:
mode:
authorAaron Patterson <tenderlove@ruby-lang.org>2021-08-31 16:58:29 -0700
committerAaron Patterson <tenderlove@ruby-lang.org>2021-09-01 10:58:20 -0700
commit8db269edb3550a85dfab9b193ea115ca36912ced (patch)
treeb50e4f3043f1aa0a7d3c6f87c00cdfe6832b9dcc /spec/ruby/core/array/array_spec.rb
parent0aa82b592fc3296ffde1f3fff59018a998c3ade0 (diff)
Guard array when appending
This prevents early collection of the array. The GC doesn't see the array on the stack when Ruby is compiled with optimizations enabled Thanks @jhaberman for the test case [ruby-core:105099] [Bug #18140]
Diffstat (limited to 'spec/ruby/core/array/array_spec.rb')
0 files changed, 0 insertions, 0 deletions