зеркало из https://github.com/github/ruby.git
Use RB_GC_GUARD.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33112 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
733e371c2a
Коммит
8ca1e6a0ee
|
@ -386,7 +386,7 @@ call_cfunc(VALUE (*func)(), VALUE recv,
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline VALUE
|
static inline VALUE
|
||||||
vm_call_cfunc(rb_thread_t *th, volatile rb_control_frame_t *reg_cfp,
|
vm_call_cfunc(rb_thread_t *th, rb_control_frame_t *reg_cfp,
|
||||||
int num, volatile VALUE recv, const rb_block_t *blockptr,
|
int num, volatile VALUE recv, const rb_block_t *blockptr,
|
||||||
const rb_method_entry_t *me)
|
const rb_method_entry_t *me)
|
||||||
{
|
{
|
||||||
|
@ -406,6 +406,7 @@ vm_call_cfunc(rb_thread_t *th, volatile rb_control_frame_t *reg_cfp,
|
||||||
if (reg_cfp != th->cfp + 1) {
|
if (reg_cfp != th->cfp + 1) {
|
||||||
rb_bug("cfp consistency error - send");
|
rb_bug("cfp consistency error - send");
|
||||||
}
|
}
|
||||||
|
RB_GC_GUARD(reg_cfp);
|
||||||
|
|
||||||
vm_pop_frame(th);
|
vm_pop_frame(th);
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче