diff options
| author | Jean Boussier <jean.boussier@gmail.com> | 2025-08-07 14:41:21 +0200 |
|---|---|---|
| committer | Jean Boussier <jean.boussier@gmail.com> | 2025-08-07 21:00:00 +0200 |
| commit | aee8e65c702283af8a70cb1fdac0797aa7c75001 (patch) | |
| tree | a04c6792f7bc6619ebff262d811a84491b694ce6 /ruby_parser.c | |
| parent | 846b5eec57ad2c030b7136d89193215055529c4a (diff) | |
Convert `Enumerator` types 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
