summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPeter Zhu <peter@peterzhu.ca>2023-01-17 11:21:21 -0500
committerPeter Zhu <peter@peterzhu.ca>2023-01-19 11:23:35 -0500
commit41bf2354e30fc585a61528560c291fd8ee77d107 (patch)
tree7617b29ea0e6313b6ae3adc12b64ac7f89a7cae2 /include
parent6f3aff3961a4c5ce87e05096a1a9dcf1055b7647 (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