We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc3fc0b commit 8f560f4Copy full SHA for 8f560f4
src/task.c
@@ -29,6 +29,7 @@
29
#include <stdlib.h>
30
#include <string.h>
31
#include <signal.h>
32
+#include <unistd.h>
33
#include <errno.h>
34
#include <inttypes.h>
35
#include "julia.h"
@@ -67,8 +68,8 @@ static inline void tsan_switch_to_ctx(void *state) {
67
68
69
// empirically, jl_finish_task needs about 64k stack space to infer/run
70
// and additionally, gc-stack reserves 64k for the guard pages
-#if defined(MINSIGSTKSZ) && MINSIGSTKSZ > 131072
71
-#define MINSTKSZ MINSIGSTKSZ
+#if defined(MINSIGSTKSZ)
72
+#define MINSTKSZ (MINSIGSTKSZ > 131072 ? MINSIGSTKSZ : 131072)
73
#else
74
#define MINSTKSZ 131072
75
#endif
0 commit comments