summaryrefslogtreecommitdiff
path: root/lib/thread
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2018-03-24 18:00:42 -0700
committerOri Bernstein <ori@eigenstate.org>2018-03-24 18:08:02 -0700
commit17cb502c1578b8e1a94f02b84cf47acfef6b20b1 (patch)
treedf989498d5edc200e564c19cb533409807fc1b7d /lib/thread
parent530c197b17925e2166b849d566d2d3588bb87369 (diff)
downloadmc-17cb502c1578b8e1a94f02b84cf47acfef6b20b1.tar.gz
Add support for OpenBSD's MAP_STACK mmap flags, use it in libthread
Diffstat (limited to 'lib/thread')
-rw-r--r--lib/thread/spawn+openbsd.myr2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/thread/spawn+openbsd.myr b/lib/thread/spawn+openbsd.myr
index 1cdf230..c925349 100644
--- a/lib/thread/spawn+openbsd.myr
+++ b/lib/thread/spawn+openbsd.myr
@@ -53,7 +53,7 @@ const spawnstk = {fn, sz
const getstk = {sz
var p, m
- p = sys.mmap((0 : byte#), sz, sys.Mprotrw, sys.Mpriv | sys.Manon, -1, 0)
+ p = sys.mmap((0 : byte#), sz, sys.Mprotrw, sys.Mpriv | sys.Manon | sys.Mstack, -1, 0)
if p == sys.Mapbad
-> p
;;