Project

General

Profile

« Previous | Next » 

Revision 5342d913

Added by jhawthorn (John Hawthorn) about 1 month ago

Fix generic_ivar_set_shape_field for table rebuild

[Bug #21438]

Previously GC could trigger a table rebuild of the generic fields
st_table in the middle of calling the st_update callback. This could
cause entries to be reallocated or rearranged and the update to be for
the wrong entry.

This commit adds an assertion to make that case easier to detect, and
replaces the st_update with a separate st_lookup and st_insert.

Co-authored-by: Aaron Patterson
Co-authored-by: Jean Boussier