diff options
author | Aaron Patterson <tenderlove@ruby-lang.org> | 2021-07-06 15:11:49 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2021-07-06 17:48:40 -0700 |
commit | 2599d1a8dff29a2376f36c8cc301839b454fc064 (patch) | |
tree | 8558da8e425fc58ec14c501f7aa1fdc3c381bf4a /string.c | |
parent | 91258ed4490652e4c44ceca447ed1ebb5ec48ca3 (diff) |
Store the dup'd CDHASH in the object list during IBF load
Since b2fc592c304 nothing was holding a reference to the dup'd CDHASH
during IBF loading. If a GC happened to run during IBF load then the
copied hash wouldn't have anything to keep it alive. We don't really
want to keep the originally loaded CDHASH hash, so this patch just
overwrites the original hash with the copied / modified hash.
[Bug #17984] [ruby-core:104259]
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/4630
Diffstat (limited to 'string.c')
0 files changed, 0 insertions, 0 deletions