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 /gc.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 'gc.c')
-rw-r--r-- | gc.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -4984,7 +4984,7 @@ gc_mark(rb_objspace_t *objspace, VALUE obj) } void -rb_gc_mark_no_pin(VALUE ptr) +rb_gc_mark_movable(VALUE ptr) { gc_mark(&rb_objspace, ptr); } @@ -10145,7 +10145,7 @@ wmap_mark(void *ptr) #if WMAP_DELETE_DEAD_OBJECT_IN_MARK if (w->obj2wmap) st_foreach(w->obj2wmap, wmap_mark_map, (st_data_t)&rb_objspace); #endif - rb_gc_mark_no_pin(w->final); + rb_gc_mark_movable(w->final); } static int |