summaryrefslogtreecommitdiff
path: root/cont.c
diff options
context:
space:
mode:
authorkosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-07-07 09:09:44 +0000
committerkosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-07-07 09:09:44 +0000
commit68a0d412dd36b0caf1551089d8e6c64819854b6f (patch)
tree83ed33725f27014646a5ca7f7b6cf98af20bb186 /cont.c
parent1a1c95404f8842b7327e76e945ef747554e37709 (diff)
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
Diffstat (limited to 'cont.c')
-rw-r--r--cont.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/cont.c b/cont.c
index 37c301a..b9634fa 100644
--- a/cont.c
+++ b/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