diff options
author | Russ Cox <rsc@swtch.com> | 2020-01-14 12:40:09 -0500 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2020-01-14 13:58:47 -0500 |
commit | 8c573cab6819c69142389d36b978b3c683771afe (patch) | |
tree | 8c97a0523b4b9dbddc2ad5afc49e89d9815ecbda /src/libthread/threadimpl.h | |
parent | 4ae529dbfe8573ae105d0d66f7f453c4f850fa1f (diff) | |
download | plan9port-8c573cab6819c69142389d36b978b3c683771afe.tar.gz plan9port-8c573cab6819c69142389d36b978b3c683771afe.tar.bz2 plan9port-8c573cab6819c69142389d36b978b3c683771afe.zip |
libthread: use mmap to allocate OpenBSD stacks
Should fix faults on OpenBSD.
Fixes #218.
Fixes #226.
Diffstat (limited to 'src/libthread/threadimpl.h')
-rw-r--r-- | src/libthread/threadimpl.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libthread/threadimpl.h b/src/libthread/threadimpl.h index 76ca57e5..6671f23c 100644 --- a/src/libthread/threadimpl.h +++ b/src/libthread/threadimpl.h @@ -209,3 +209,5 @@ extern void _threadsetupdaemonize(void); extern void _threaddodaemonize(char*); extern void _threadpexit(void); extern void _threaddaemonize(void); +extern void *_threadstkalloc(int); +extern void _threadstkfree(void*, int); |