summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2022-07-14 09:48:43 +0300
committerIvan Maidanski <ivmai@mail.ru>2022-07-14 15:48:43 +0300
commit713fbad083e1f00fbd711cce7ff0fe9031c2fcdd (patch)
tree840643cf33f89cdb90919694000ba04baaea1846 /tests
parentd0e0c45dbb05e51722acf9407bcb27e3fa0615f4 (diff)
downloadbdwgc-713fbad083e1f00fbd711cce7ff0fe9031c2fcdd.tar.gz
Workaround stack overflow in gctest collect_from_other_thread on musl arm64
(fix of commit 3159afddb) * tests/gctest.c [!BIG && (MACOS || UNIX_LIKE && NO_GETCONTEXT) && __aarch64__] (BIG): Define to 600 (instead of 1000).
Diffstat (limited to 'tests')
-rw-r--r--tests/gctest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/gctest.c b/tests/gctest.c
index bf9da87a..3271b81e 100644
--- a/tests/gctest.c
+++ b/tests/gctest.c
@@ -807,7 +807,7 @@ void *GC_CALLBACK reverse_test_inner(void *data)
# if defined(MACOS) \
|| (defined(UNIX_LIKE) && defined(NO_GETCONTEXT)) /* e.g. musl */
/* Assume 128 KB stacks at least. */
-# if defined(__s390x__)
+# if defined(__aarch64__) || defined(__s390x__)
# define BIG 600
# else
# define BIG 1000