diff options
| author | Jean Boussier <jean.boussier@gmail.com> | 2025-08-07 14:47:37 +0200 |
|---|---|---|
| committer | Jean Boussier <jean.boussier@gmail.com> | 2025-08-07 21:00:00 +0200 |
| commit | 1986d775cdae6a0ab40a2528e2ec9b50e06eba70 (patch) | |
| tree | 0611bb9d506b2e973c3a923c0842b4b95d71bd5b /ruby_parser.c | |
| parent | 5bcfc53d6fa5518a194f2d0771830eb961180991 (diff) | |
symbol.c: use `rb_gc_mark_and_move` over `rb_gc_location`
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
