1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

add a comment why FreeBSD can't use MAP_STACK.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32437 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
kosaki 2011-07-07 09:09:44 +00:00
parent 1a1c95404f
commit 68a0d412dd

4
cont.c
View file

@ -517,6 +517,10 @@ fiber_entry(void *arg)
}
#else /* _WIN32 */
/*
* FreeBSD require a first (i.e. addr) argument of mmap(2) is not NULL
* if MAP_STACK is passed.
*/
#if defined(MAP_STACK) && !defined(__FreeBSD__)
#define FIBER_STACK_FLAGS (MAP_PRIVATE | MAP_ANON | MAP_STACK)
#else