Actions
Bug #19038
closedCorruption of generic_iv_tbl when compacting
Description
GitHub PR: https://github.com/ruby/ruby/pull/6494
When the generic_iv_tbl is resized up, rebuild_table performs allocations that can trigger GC. If autocompaction is enabled, then moved objects are removed from and inserted into the generic_iv_tbl. This may cause another call to rebuild_table to resize the generic_iv_tbl. When returning back to the original rebuild_table, some of the data may be stale, causing the generic_iv_tbl to be corrupted.
Co-Authored-By: @eightbitraptor (Matthew Valentine-House)
Actions
Like0
Like0Like0