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:
parent
10e830c25b
commit
b91f685a26
1 changed files with 2 additions and 0 deletions
2
proc.c
2
proc.c
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue