Project

General

Profile

Actions

Bug #19038

closed

Corruption of generic_iv_tbl when compacting

Added by peterzhu2118 (Peter Zhu) over 1 year ago. Updated over 1 year ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:110187]

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

Also available in: Atom PDF

Like0
Like0Like0