Bug #1166 ยป ruby-1.9.1-p0-gcc44.patch
| ruby-1.9.1-p0.gcc44/cont.c 2009-02-17 18:26:41.000000000 +0100 | ||
|---|---|---|
|
#ifdef CAPTURE_JUST_VALID_VM_STACK
|
||
|
rb_gc_mark_locations(cont->vm_stack,
|
||
|
cont->vm_stack + cont->vm_stack_slen + cont->vm_stack_clen);
|
||
|
#elif
|
||
|
#else
|
||
|
rb_gc_mark_localtion(cont->vm_stack,
|
||
|
cont->vm_stack, cont->saved_thread.stack_size);
|
||
|
#endif
|
||
| ... | ... | |
|
cont->vm_stack = ALLOC_N(VALUE, cont->vm_stack_slen + cont->vm_stack_clen);
|
||
|
MEMCPY(cont->vm_stack, th->stack, VALUE, cont->vm_stack_slen);
|
||
|
MEMCPY(cont->vm_stack + cont->vm_stack_slen, (VALUE*)th->cfp, VALUE, cont->vm_stack_clen);
|
||
|
#elif
|
||
|
#else
|
||
|
cont->vm_stack = ALLOC_N(VALUE, th->stack_size);
|
||
|
MEMCPY(cont->vm_stack, th->stack, VALUE, th->stack_size);
|
||
|
#endif
|
||
| ... | ... | |
|
MEMCPY(th->stack, cont->vm_stack, VALUE, cont->vm_stack_slen);
|
||
|
MEMCPY(th->stack + sth->stack_size - cont->vm_stack_clen,
|
||
|
cont->vm_stack + cont->vm_stack_slen, VALUE, cont->vm_stack_clen);
|
||
|
#elif
|
||
|
#else
|
||
|
MEMCPY(th->stack, cont->vm_stack, VALUE, sth->stack_size);
|
||
|
#endif
|
||
|
}
|
||