mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* thread_pthread.c (reserve_stack): ensure the memory is really
allocated. [Bug #11457] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51626 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
0958af2ad4
commit
3816f7574f
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Tue Aug 18 20:05:49 2015 NARUSE, Yui <naruse@ruby-lang.org>
|
||||
|
||||
* thread_pthread.c (reserve_stack): ensure the memory is really
|
||||
allocated. [Bug #11457]
|
||||
|
||||
Tue Aug 18 17:19:21 2015 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* parse.y (IS_BEG): include labeled argument state, which was
|
||||
|
|
|
@ -686,8 +686,8 @@ reserve_stack(volatile char *limit, size_t size)
|
|||
limit -= size;
|
||||
if (buf > limit) {
|
||||
limit = alloca(buf - limit);
|
||||
limit[0] = 0; /* ensure alloca is called */
|
||||
limit -= stack_check_margin;
|
||||
limit[0] = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue