Bug #21368 ยป 0001-Bug-21368-Transfer-finalizer-when-moving-between-Rac.patch
| ractor.c | ||
|---|---|---|
|
rb_gc_obj_slot_size(obj) - sizeof(VALUE)
|
||
|
);
|
||
|
if (FL_TEST_RAW(obj, FL_FINALIZE)) {
|
||
|
rb_gc_copy_finalizer(data->replacement, obj);
|
||
|
rb_undefine_finalizer(obj);
|
||
|
FL_UNSET_RAW(obj, FL_FINALIZE);
|
||
|
}
|
||
|
void rb_replace_generic_ivar(VALUE clone, VALUE obj); // variable.c
|
||
|
rb_gc_obj_id_moved(data->replacement);
|
||