mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* cont.c (rb_fiber_s_new), yarvcore.c (th_init2): fix to clear
VM stack ([ruby-dev:31046]). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12618 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
0043929b5f
commit
702e431f1b
3 changed files with 10 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
Tue Jun 26 03:38:31 2007 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* cont.c (rb_fiber_s_new), yarvcore.c (th_init2): fix to clear
|
||||
VM stack ([ruby-dev:31046]).
|
||||
|
||||
Tue Jun 26 03:15:27 2007 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* compile.c: rename setup_arg() to setup_args().
|
||||
|
|
2
cont.c
2
cont.c
|
@ -474,6 +474,8 @@ rb_fiber_s_new(VALUE self)
|
|||
th->stack = 0;
|
||||
th->stack_size = FIBER_STACK_SIZE;
|
||||
th->stack = ALLOC_N(VALUE, th->stack_size);
|
||||
MEMZERO(th->stack, VALUE, th->stack_size);
|
||||
|
||||
th->cfp = (void *)(th->stack + th->stack_size);
|
||||
th->cfp--;
|
||||
th->cfp->pc = 0;
|
||||
|
|
|
@ -327,9 +327,10 @@ th_init2(rb_thread_t *th)
|
|||
MEMZERO(th, rb_thread_t, 1);
|
||||
|
||||
/* allocate thread stack */
|
||||
th->stack = ALLOC_N(VALUE, RUBY_VM_THREAD_STACK_SIZE);
|
||||
|
||||
th->stack_size = RUBY_VM_THREAD_STACK_SIZE;
|
||||
th->stack = ALLOC_N(VALUE, th->stack_size);
|
||||
MEMZERO(th->stack, VALUE, th->stack_size);
|
||||
|
||||
th->cfp = (void *)(th->stack + th->stack_size);
|
||||
th->cfp--;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue