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. --- vm.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'vm.c') diff --git a/vm.c b/vm.c index 3fa0b16f5b..e8e436bd80 100644 --- a/vm.c +++ b/vm.c @@ -2481,14 +2481,14 @@ rb_execution_context_mark(const rb_execution_context_t *ec) while (cfp != limit_cfp) { const VALUE *ep = cfp->ep; VM_ASSERT(!!VM_ENV_FLAGS(ep, VM_ENV_FLAG_ESCAPED) == vm_ep_in_heap_p_(ec, ep)); - rb_gc_mark_no_pin(cfp->self); - rb_gc_mark_no_pin((VALUE)cfp->iseq); - rb_gc_mark_no_pin((VALUE)cfp->block_code); + rb_gc_mark_movable(cfp->self); + rb_gc_mark_movable((VALUE)cfp->iseq); + rb_gc_mark_movable((VALUE)cfp->block_code); if (!VM_ENV_LOCAL_P(ep)) { const VALUE *prev_ep = VM_ENV_PREV_EP(ep); if (VM_ENV_FLAGS(prev_ep, VM_ENV_FLAG_ESCAPED)) { - rb_gc_mark_no_pin(prev_ep[VM_ENV_DATA_INDEX_ENV]); + rb_gc_mark_movable(prev_ep[VM_ENV_DATA_INDEX_ENV]); } } -- cgit v1.2.1