diff --git a/gc.c b/gc.c index bd00824882..077bae107e 100644 --- a/gc.c +++ b/gc.c @@ -4417,7 +4417,7 @@ gc_mark_and_pin_stack_values(rb_objspace_t *objspace, long n, const VALUE *value } void -rb_gc_mark_stack_values(long n, const VALUE *values) +rb_gc_mark_vm_stack_values(long n, const VALUE *values) { rb_objspace_t *objspace = &rb_objspace; gc_mark_and_pin_stack_values(objspace, n, values); diff --git a/internal.h b/internal.h index 4d3a5061d2..22b893a24e 100644 --- a/internal.h +++ b/internal.h @@ -2357,7 +2357,7 @@ void rb_gc_verify_internal_consistency(void); #define RB_OBJ_GC_FLAGS_MAX 6 size_t rb_obj_gc_flags(VALUE, ID[], size_t); void rb_gc_mark_values(long n, const VALUE *values); -void rb_gc_mark_stack_values(long n, const VALUE *values); +void rb_gc_mark_vm_stack_values(long n, const VALUE *values); #if IMEMO_DEBUG VALUE rb_imemo_new_debug(enum imemo_type type, VALUE v1, VALUE v2, VALUE v3, VALUE v0, const char *file, int line); diff --git a/vm.c b/vm.c index 41064f07c3..9b6600393c 100644 --- a/vm.c +++ b/vm.c @@ -2491,7 +2491,7 @@ rb_execution_context_mark(const rb_execution_context_t *ec) rb_control_frame_t *cfp = ec->cfp; rb_control_frame_t *limit_cfp = (void *)(ec->vm_stack + ec->vm_stack_size); - rb_gc_mark_stack_values((long)(sp - p), p); + rb_gc_mark_vm_stack_values((long)(sp - p), p); while (cfp != limit_cfp) { const VALUE *ep = cfp->ep;