diff options
| author | Jean Boussier <jean.boussier@gmail.com> | 2025-08-07 14:43:18 +0200 |
|---|---|---|
| committer | Jean Boussier <jean.boussier@gmail.com> | 2025-08-07 21:00:00 +0200 |
| commit | 559d9e1f67cb6c19630b20b609af315ed7fdafca (patch) | |
| tree | 44e54eb73d50041112d7631b440c0d88bb01d6d6 /ruby_parser.c | |
| parent | bc9781c264b9e37c2482dba429b560436104a1f5 (diff) | |
Convert `VM/shape_tree` to use `rb_gc_mark_and_move`
The `p->field = rb_gc_location(p->field)` isn't ideal because it means all
references are rewritten on compaction, regardless of whether the referenced
object has moved. This isn't good for caches nor for Copy-on-Write.
`rb_gc_mark_and_move` avoid needless writes, and most of the time allow to
have a single function for both marking and updating references.
Diffstat (limited to 'ruby_parser.c')
0 files changed, 0 insertions, 0 deletions
