ruby-changes:55723
From: Aaron <ko1@a...>
Date: Wed, 15 May 2019 00:19:30 +0900 (JST)
Subject: [ruby-changes:55723] Aaron Patterson: 2ca537ba4b (trunk): Fixing function name
https://git.ruby-lang.org/ruby.git/commit/?id=2ca537ba4b From 2ca537ba4b620d0a657b7da433df92f876974015 Mon Sep 17 00:00:00 2001 From: Aaron Patterson <tenderlove@r...> Date: Tue, 14 May 2019 08:18:43 -0700 Subject: Fixing function name This function is used for marking / pinning vm stack values, so it should have "vm" in the function name to be more clear. diff --git a/gc.c b/gc.c index bd00824..077bae1 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 https://github.com/ruby/ruby/blob/trunk/gc.c#L4417 } 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 4d3a506..22b893a 100644 --- a/internal.h +++ b/internal.h @@ -2357,7 +2357,7 @@ void rb_gc_verify_internal_consistency(void); https://github.com/ruby/ruby/blob/trunk/internal.h#L2357 #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 41064f0..9b66003 100644 --- a/vm.c +++ b/vm.c @@ -2491,7 +2491,7 @@ rb_execution_context_mark(const rb_execution_context_t *ec) https://github.com/ruby/ruby/blob/trunk/vm.c#L2491 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; -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/