From 55c5ebe0a02eee319eb6a965a08bb53c5dcc7feb Mon Sep 17 00:00:00 2001 From: Koichi Sasada Date: Sun, 15 Oct 2023 03:56:46 +0900 Subject: [PATCH] disable MN threads on s390s-linux I check the s390s-linux/Ubuntu system and I found that MN threads doesn't work with: * function inlining (-O0 doesn't repro) * Thread local specifier (`_Thread_local`. With `pthread_get_specific works) (it is not an issue of `__tls_get_addr()` written in thread.c) * swap context with ucontext (coroutine/ucontext) I couldn't find out what is the root cause of this issue but disable MN threads to make CI healthy. --- configure.ac | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configure.ac b/configure.ac index 71f831636c..b878e5cbde 100644 --- a/configure.ac +++ b/configure.ac @@ -4364,6 +4364,10 @@ AS_IF([test "${universal_binary-no}" = yes ], [ arch="${target_cpu}-${target_os}" ]) AC_DEFINE_UNQUOTED(RUBY_PLATFORM, "$arch") + + AS_IF([test "$arch" = "s390x-linux"], [ + AC_DEFINE_UNQUOTED(USE_MN_THREADS, 0) + ]) ]) unset sitearch