summaryrefslogtreecommitdiff
path: root/spec/ruby/core/array/shared/length.rb
diff options
context:
space:
mode:
authorAaron Patterson <tenderlove@ruby-lang.org>2020-09-18 10:50:27 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2020-09-18 12:31:54 -0700
commit1a9dd31910699c7cd69f2a84c94af20eacd5875c (patch)
tree7e5a8225cb2b8697de2d1ccb29333e8f14817398 /spec/ruby/core/array/shared/length.rb
parent6dd257ed1e54f36deb3e33db12ce9131fdea3b90 (diff)
Pin values in the finalizer table
When finalizers run (in `rb_objspace_call_finalizer`) the table is copied to a linked list that is not managed by the GC. If compaction runs, the references in the linked list can go bad. Finalizer table shouldn't be used frequently, so lets pin references in the table so that the linked list in `rb_objspace_call_finalizer` is safe.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3556
Diffstat (limited to 'spec/ruby/core/array/shared/length.rb')
0 files changed, 0 insertions, 0 deletions