ruby-changes:53547
From: nobu <ko1@a...>
Date: Fri, 16 Nov 2018 15:52:02 +0900 (JST)
Subject: [ruby-changes:53547] nobu:r65763 (trunk): Prefix rb_ec_set_vm_stack
nobu 2018-11-16 15:51:57 +0900 (Fri, 16 Nov 2018) New Revision: 65763 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65763 Log: Prefix rb_ec_set_vm_stack Modified files: trunk/cont.c trunk/vm.c trunk/vm_core.h Index: cont.c =================================================================== --- cont.c (revision 65762) +++ cont.c (revision 65763) @@ -250,7 +250,7 @@ fiber_status_set(rb_fiber_t *fib, enum f https://github.com/ruby/ruby/blob/trunk/cont.c#L250 } void -ec_set_vm_stack(rb_execution_context_t *ec, VALUE *stack, size_t size) +rb_ec_set_vm_stack(rb_execution_context_t *ec, VALUE *stack, size_t size) { ec->vm_stack = stack; ec->vm_stack_size = size; @@ -673,7 +673,7 @@ cont_capture(volatile int *volatile stat https://github.com/ruby/ruby/blob/trunk/cont.c#L673 cont->saved_vm_stack.ptr = ALLOC_N(VALUE, ec->vm_stack_size); MEMCPY(cont->saved_vm_stack.ptr, ec->vm_stack, VALUE, ec->vm_stack_size); #endif - ec_set_vm_stack(&cont->saved_ec, NULL, 0); + rb_ec_set_vm_stack(&cont->saved_ec, NULL, 0); cont_save_machine_stack(th, cont); /* backup ensure_list to array for search in another context */ @@ -1425,7 +1425,7 @@ fiber_init(VALUE fibval, VALUE proc) https://github.com/ruby/ruby/blob/trunk/cont.c#L1425 else { vm_stack = ruby_xmalloc(fib_stack_bytes); } - ec_set_vm_stack(sec, vm_stack, fib_stack_bytes / sizeof(VALUE)); + rb_ec_set_vm_stack(sec, vm_stack, fib_stack_bytes / sizeof(VALUE)); sec->cfp = (void *)(sec->vm_stack + sec->vm_stack_size); rb_vm_push_frame(sec, @@ -1777,7 +1777,7 @@ rb_fiber_close(rb_fiber_t *fib) https://github.com/ruby/ruby/blob/trunk/cont.c#L1777 else { ruby_xfree(vm_stack); } - ec_set_vm_stack(ec, NULL, 0); + rb_ec_set_vm_stack(ec, NULL, 0); #if !FIBER_USE_NATIVE /* should not mark machine stack any more */ Index: vm.c =================================================================== --- vm.c (revision 65762) +++ vm.c (revision 65763) @@ -2557,7 +2557,7 @@ th_init(rb_thread_t *th, VALUE self) https://github.com/ruby/ruby/blob/trunk/vm.c#L2557 /* vm_stack_size is word number. * th->vm->default_params.thread_vm_stack_size is byte size. */ size_t size = th->vm->default_params.thread_vm_stack_size / sizeof(VALUE); - ec_set_vm_stack(th->ec, rb_thread_recycle_stack(size), size); + rb_ec_set_vm_stack(th->ec, rb_thread_recycle_stack(size), size); } th->ec->cfp = (void *)(th->ec->vm_stack + th->ec->vm_stack_size); Index: vm_core.h =================================================================== --- vm_core.h (revision 65762) +++ vm_core.h (revision 65763) @@ -880,7 +880,7 @@ typedef struct rb_execution_context_stru https://github.com/ruby/ruby/blob/trunk/vm_core.h#L880 } machine; } rb_execution_context_t; -void ec_set_vm_stack(rb_execution_context_t *ec, VALUE *stack, size_t size); +void rb_ec_set_vm_stack(rb_execution_context_t *ec, VALUE *stack, size_t size); typedef struct rb_thread_struct { struct list_node vmlt_node; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/