* cont.c (fiber_machine_stack_alloc): remove unnecessary cast.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32418 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
5738ab331e
commit
a737fc8ace
@ -1,3 +1,7 @@
|
|||||||
|
Wed Jul 6 21:21:05 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
|
||||||
|
|
||||||
|
* cont.c (fiber_machine_stack_alloc): remove unnecessary cast.
|
||||||
|
|
||||||
Wed Jul 6 18:10:13 2011 Shota Fukumori <sorah@tubusu.net>
|
Wed Jul 6 18:10:13 2011 Shota Fukumori <sorah@tubusu.net>
|
||||||
|
|
||||||
* test/cgi/test_cgi_header.rb(test_cgi_header_nph): Adding space after
|
* test/cgi/test_cgi_header.rb(test_cgi_header_nph): Adding space after
|
||||||
|
2
cont.c
2
cont.c
@ -536,7 +536,7 @@ fiber_machine_stack_alloc(size_t size)
|
|||||||
else {
|
else {
|
||||||
void *page;
|
void *page;
|
||||||
STACK_GROW_DIR_DETECTION;
|
STACK_GROW_DIR_DETECTION;
|
||||||
ptr = (VALUE*)mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANON, -1, 0);
|
ptr = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANON, -1, 0);
|
||||||
if (ptr == (VALUE*)(SIGNED_VALUE)-1) {
|
if (ptr == (VALUE*)(SIGNED_VALUE)-1) {
|
||||||
rb_raise(rb_eFiberError, "can't alloc machine stack to fiber");
|
rb_raise(rb_eFiberError, "can't alloc machine stack to fiber");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user