зеркало из https://github.com/github/ruby.git
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:
Родитель
b5a3ec7f18
Коммит
2ca537ba4b
2
gc.c
2
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);
|
||||
|
|
|
@ -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
2
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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче