Skip to content

Commit

Permalink
disable MN threads on s390s-linux
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ko1 committed Oct 14, 2023
1 parent 7865ceb commit 8df9dee
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8df9dee

Please sign in to comment.