diff options
author | Aaron Patterson <tenderlove@ruby-lang.org> | 2019-08-12 16:09:21 -0400 |
---|---|---|
committer | Aaron Patterson <tenderlove@ruby-lang.org> | 2019-08-12 16:44:54 -0400 |
commit | aac4d9d6c7e6b6b0742f3941b574f6006ccb5672 (patch) | |
tree | b1f2906b04075227249ee040111e94a846b99ab2 /gc.h | |
parent | 404850e13446c79fb6142f1b32b219753e5cd726 (diff) | |
download | ruby-aac4d9d6c7e6b6b0742f3941b574f6006ccb5672.tar.gz |
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.h')
-rw-r--r-- | gc.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -59,7 +59,7 @@ rb_gc_debug_body(const char *mode, const char *msg, int st, void *ptr) #define RUBY_MARK_NO_PIN_UNLESS_NULL(ptr) do { \ VALUE markobj = (ptr); \ - if (RTEST(markobj)) {rb_gc_mark_no_pin(markobj);} \ + if (RTEST(markobj)) {rb_gc_mark_movable(markobj);} \ } while (0) #define RUBY_MARK_UNLESS_NULL(ptr) do { \ VALUE markobj = (ptr); \ |