diff options
| author | Peter Zhu <peter@peterzhu.ca> | 2023-01-17 11:21:21 -0500 |
|---|---|---|
| committer | Peter Zhu <peter@peterzhu.ca> | 2023-01-19 11:23:35 -0500 |
| commit | 41bf2354e30fc585a61528560c291fd8ee77d107 (patch) | |
| tree | 7617b29ea0e6313b6ae3adc12b64ac7f89a7cae2 /include | |
| parent | 6f3aff3961a4c5ce87e05096a1a9dcf1055b7647 (diff) | |
Add rb_gc_mark_and_move and implement on iseq
This commit adds rb_gc_mark_and_move which takes a pointer to an object
and marks it during marking phase and updates references during compaction.
This allows for marking and reference updating to be combined into a
single function, which reduces code duplication and prevents bugs if
marking and reference updating goes out of sync.
This commit also implements rb_gc_mark_and_move on iseq as an example.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/7140
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
