diff options
author | Aaron Patterson <[email protected]> | 2020-09-18 10:50:27 -0700 |
---|---|---|
committer | Aaron Patterson <[email protected]> | 2020-09-18 12:31:54 -0700 |
commit | 1a9dd31910699c7cd69f2a84c94af20eacd5875c (patch) | |
tree | 7e5a8225cb2b8697de2d1ccb29333e8f14817398 /lib/rinda | |
parent | 6dd257ed1e54f36deb3e33db12ce9131fdea3b90 (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 'lib/rinda')
0 files changed, 0 insertions, 0 deletions