shithub: riscv

Download patch

ref: 3873eb06d95afafd4b20122130dae8664b69428f
parent: d7b541eaf317ca3586bf18a6a189dabae81d1e21
author: Ori Bernstein <[email protected]>
date: Sun Sep 13 07:21:21 EDT 2020

games/4s: increase thread size (thanks majiru)

It seems like on amd64, we're overflowing the stack.
Let's not do that.

--- a/sys/src/games/xs.c
+++ b/sys/src/games/xs.c
@@ -873,11 +873,11 @@
 
 	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);