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:
parent
1a1c95404f
commit
68a0d412dd
1 changed files with 4 additions and 0 deletions
4
cont.c
4
cont.c
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue