* 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
@ -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>
|
Tue Aug 18 17:19:21 2015 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* parse.y (IS_BEG): include labeled argument state, which was
|
* parse.y (IS_BEG): include labeled argument state, which was
|
||||||
|
@ -686,8 +686,8 @@ reserve_stack(volatile char *limit, size_t size)
|
|||||||
limit -= size;
|
limit -= size;
|
||||||
if (buf > limit) {
|
if (buf > limit) {
|
||||||
limit = alloca(buf - limit);
|
limit = alloca(buf - limit);
|
||||||
|
limit[0] = 0; /* ensure alloca is called */
|
||||||
limit -= stack_check_margin;
|
limit -= stack_check_margin;
|
||||||
limit[0] = 0;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user