summaryrefslogtreecommitdiff
path: root/cont.c
diff options
context:
space:
mode:
authorAaron Patterson <tenderlove@ruby-lang.org>2019-08-12 16:09:21 -0400
committerAaron Patterson <tenderlove@ruby-lang.org>2019-08-12 16:44:54 -0400
commitaac4d9d6c7e6b6b0742f3941b574f6006ccb5672 (patch)
treeb1f2906b04075227249ee040111e94a846b99ab2 /cont.c
parent404850e13446c79fb6142f1b32b219753e5cd726 (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 'cont.c')
-rw-r--r--cont.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cont.c b/cont.c
index 8e76ae1393..ae99a34531 100644
--- a/cont.c
+++ b/cont.c
@@ -858,7 +858,7 @@ cont_mark(void *ptr)
rb_context_t *cont = ptr;
RUBY_MARK_ENTER("cont");
- rb_gc_mark_no_pin(cont->value);
+ rb_gc_mark_movable(cont->value);
rb_execution_context_mark(&cont->saved_ec);
rb_gc_mark(cont_thread_value(cont));
@@ -967,7 +967,7 @@ void
rb_fiber_mark_self(const rb_fiber_t *fiber)
{
if (fiber->cont.self) {
- rb_gc_mark_no_pin(fiber->cont.self);
+ rb_gc_mark_movable(fiber->cont.self);
}
else {
rb_execution_context_mark(&fiber->cont.saved_ec);
@@ -992,7 +992,7 @@ fiber_mark(void *ptr)
rb_fiber_t *fiber = ptr;
RUBY_MARK_ENTER("cont");
fiber_verify(fiber);
- rb_gc_mark_no_pin(fiber->first_proc);
+ rb_gc_mark_movable(fiber->first_proc);
if (fiber->prev) rb_fiber_mark_self(fiber->prev);
cont_mark(&fiber->cont);
RUBY_MARK_LEAVE("cont");