diff options
author | Aaron Patterson <[email protected]> | 2019-08-12 16:09:21 -0400 |
---|---|---|
committer | Aaron Patterson <[email protected]> | 2019-08-12 16:44:54 -0400 |
commit | aac4d9d6c7e6b6b0742f3941b574f6006ccb5672 (patch) | |
tree | b1f2906b04075227249ee040111e94a846b99ab2 /variable.c | |
parent | 404850e13446c79fb6142f1b32b219753e5cd726 (diff) |
Rename rb_gc_mark_no_pin -> rb_gc_mark_movable
Renaming this function. "No pin" leaks some implementation details. We
just want users to know that if they mark this object, the reference may
move and they'll need to update the reference accordingly.
Diffstat (limited to 'variable.c')
-rw-r--r-- | variable.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/variable.c b/variable.c index b839f3067b..69e2671be0 100644 --- a/variable.c +++ b/variable.c @@ -1896,7 +1896,7 @@ autoload_i_mark(void *ptr) { struct autoload_data_i *p = ptr; - rb_gc_mark_no_pin(p->feature); + rb_gc_mark_movable(p->feature); /* allow GC to free us if no modules refer to this via autoload_const.ad */ if (list_empty(&p->constants)) { @@ -1942,9 +1942,9 @@ autoload_c_mark(void *ptr) { struct autoload_const *ac = ptr; - rb_gc_mark_no_pin(ac->mod); - rb_gc_mark_no_pin(ac->ad); - rb_gc_mark_no_pin(ac->value); + rb_gc_mark_movable(ac->mod); + rb_gc_mark_movable(ac->ad); + rb_gc_mark_movable(ac->value); } static void |