summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2018-04-22 19:40:58 -0700
committerOri Bernstein <ori@eigenstate.org>2018-04-22 19:40:58 -0700
commit0f7fbc2dcbb934a3aa62aa4a69db432b4d20b7c1 (patch)
tree4944029cde8e90020744746561bc464876677eef
parent4ac578a191635f9728dc66dd99b22cc54692b4ef (diff)
downloadmc-0f7fbc2dcbb934a3aa62aa4a69db432b4d20b7c1.tar.gz
Improve comments.
-rw-r--r--lib/thread/spawn+openbsd.myr4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/thread/spawn+openbsd.myr b/lib/thread/spawn+openbsd.myr
index d02bd5c..a72e752 100644
--- a/lib/thread/spawn+openbsd.myr
+++ b/lib/thread/spawn+openbsd.myr
@@ -13,6 +13,10 @@ extern const exit : (-> void)
var exitstk
const __init__ = {
+ /*
+ We need a valid stack at all times, so we allocate one ahead of
+ time to swap to before we invalidate a stack.
+ */
exitstk = getstk(16)
}