From aac4d9d6c7e6b6b0742f3941b574f6006ccb5672 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Mon, 12 Aug 2019 16:09:21 -0400 Subject: 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. --- gc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gc.h') diff --git a/gc.h b/gc.h index 0e7ffba9f1..7c7f0efd1b 100644 --- a/gc.h +++ b/gc.h @@ -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); \ -- cgit v1.2.3