diff options
author | Ori Bernstein <ori@eigenstate.org> | 2020-09-13 11:21:21 -0700 |
---|---|---|
committer | Ori Bernstein <ori@eigenstate.org> | 2020-09-13 11:21:21 -0700 |
commit | 3873eb06d95afafd4b20122130dae8664b69428f (patch) | |
tree | aad33568610af7675d2ecda2a9f6fef4fa314383 | |
parent | d7b541eaf317ca3586bf18a6a189dabae81d1e21 (diff) | |
download | plan9front-3873eb06d95afafd4b20122130dae8664b69428f.tar.xz |
games/4s: increase thread size (thanks majiru)
It seems like on amd64, we're overflowing the stack.
Let's not do that.
-rw-r--r-- | sys/src/games/xs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/src/games/xs.c b/sys/src/games/xs.c index 4a1a72284..2caf6975c 100644 --- a/sys/src/games/xs.c +++ b/sys/src/games/xs.c @@ -873,11 +873,11 @@ threadmain(int argc, char *argv[]) threadsetname("4s-5s"); timerc= chancreate(sizeof(int), 0); - proccreate(timerproc, timerc, 1024); + proccreate(timerproc, timerc, 8192); suspc= chancreate(sizeof(int), 0); mousec= chancreate(sizeof(Mouse), 0); kbdc= chancreate(sizeof(Rune), 0); - threadcreate(suspproc, nil, 1024); + threadcreate(suspproc, nil, 8192); points = 0; memset(board, 0, sizeof(board)); redraw(0); |