* eval.c (rb_thread_save_context): prohibit rb_gc_force_recycle()

on thread saved ruby_dyna_vars. [ruby-dev:20236]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3837 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2003-05-20 10:02:06 +00:00
Родитель 56a4cc27ed
Коммит bec6d3b1b9
2 изменённых файлов: 7 добавлений и 0 удалений

Просмотреть файл

@ -1,3 +1,8 @@
Tue May 20 18:59:54 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
* eval.c (rb_thread_save_context): prohibit rb_gc_force_recycle()
on thread saved ruby_dyna_vars. [ruby-dev:20236]
Tue May 20 17:39:15 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
* object.c (init_copy): call initialize_copy at the end of copy

2
eval.c
Просмотреть файл

@ -7982,6 +7982,7 @@ rb_thread_save_context(th)
th->stk_pos = (rb_gc_stack_start<pos)?rb_gc_stack_start
:rb_gc_stack_start - len;
if (len > th->stk_max) {
rb_gc();
REALLOC_N(th->stk_ptr, VALUE, len);
th->stk_max = len;
}
@ -7998,6 +7999,7 @@ rb_thread_save_context(th)
th->wrapper = ruby_wrapper;
th->cref = ruby_cref;
th->dyna_vars = ruby_dyna_vars;
FL_SET(ruby_dyna_vars, DVAR_DONT_RECYCLE);
th->block = ruby_block;
th->flags &= THREAD_FLAGS_MASK;
th->flags |= (rb_trap_immediate<<8) | scope_vmode;