1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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.
This commit is contained in:
Aaron Patterson 2019-05-14 08:18:43 -07:00
parent b5a3ec7f18
commit 2ca537ba4b
No known key found for this signature in database
GPG key ID: 953170BCB4FFAFC6
3 changed files with 3 additions and 3 deletions

2
gc.c
View file

@ -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);

View file

@ -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);

2
vm.c
View file

@ -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;