You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pin object ivars while they are being copied in a hash
When transitioning an object to TOO_COMPLEX we copy all its
ivar in a table, but if GC (and compaction) trigger in the middle
of the transition, the old `iv_ptr` might still be the canonical
ivar list and will be updated by the GC, but the reference we
copied in the table will be outdated.
So we must pin these reference until they are all copied and
the object `iv_ptr` is pointing to the table.
To do this I use a custom TypedData that simply mark the new
table with `rb_mark_tbl` so references are pinned.
0 commit comments