1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Mark struct METHOD->owner for the GC

* Fixes https://github.com/ruby/ruby/commit/6b7d32a5e5
* See [Bug #18729]
This commit is contained in:
Benoit Daloze 2022-10-03 12:03:46 +02:00
parent 10e830c25b
commit b91f685a26

2
proc.c
View file

@ -1601,6 +1601,7 @@ bm_mark(void *ptr)
rb_gc_mark_movable(data->recv);
rb_gc_mark_movable(data->klass);
rb_gc_mark_movable(data->iclass);
rb_gc_mark_movable(data->owner);
rb_gc_mark_movable((VALUE)data->me);
}
@ -1611,6 +1612,7 @@ bm_compact(void *ptr)
UPDATE_REFERENCE(data->recv);
UPDATE_REFERENCE(data->klass);
UPDATE_REFERENCE(data->iclass);
UPDATE_REFERENCE(data->owner);
UPDATE_TYPED_REFERENCE(rb_method_entry_t *, data->me);
}