mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* eval.c (rb_thread_save_context): must not switch contexts during
re-allocating stack. fixed: [ruby-core:05219] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8726 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
11921b1861
commit
a327eb95d9
2 changed files with 7 additions and 2 deletions
|
@ -1,8 +1,11 @@
|
|||
Tue Jul 5 23:23:09 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
Tue Jul 5 23:27:14 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* array.c (sort_2): get rid of yet another bcc's bug.
|
||||
fixed: [ruby-core:05152]
|
||||
|
||||
* eval.c (rb_thread_save_context): must not switch contexts during
|
||||
re-allocating stack. fixed: [ruby-core:05219]
|
||||
|
||||
Tue Jul 5 15:15:10 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
|
||||
|
||||
* ext/tk/tkutil.c: fix typo.
|
||||
|
|
4
eval.c
4
eval.c
|
@ -10329,7 +10329,9 @@ rb_thread_save_context(th)
|
|||
th->stk_len = 0;
|
||||
th->stk_pos = pos;
|
||||
if (len > th->stk_max) {
|
||||
REALLOC_N(th->stk_ptr, VALUE, len);
|
||||
VALUE *ptr = realloc(th->stk_ptr, sizeof(VALUE) * len);
|
||||
if (!ptr) rb_memerror();
|
||||
th->stk_ptr = ptr;
|
||||
th->stk_max = len;
|
||||
}
|
||||
th->stk_len = len;
|
||||
|
|
Loading…
Reference in a new issue