[#87847] undefined symbol: mjit_init_p — Leam Hall <leamhall@...>

I pulled Ruby trunk on 3 Jul and am now getting errors similar to the

10 messages 2018/07/07

[#88088] [Ruby trunk Misc#14937] [PATCH] thread_pthread: lazy-spawn timer-thread only on contention — normalperson@...

Issue #14937 has been reported by normalperson (Eric Wong).

9 messages 2018/07/24

[ruby-core:87781] Re: timer thread [was Re: [ruby-alerts:7905] failure alert on trunk-asserts@silicon-docker (NG (r63844))]

From: Eric Wong <normalperson@...>
Date: 2018-07-04 12:24:02 UTC
List: ruby-core #87781
Benoit Daloze <eregontp@gmail.com> wrote:
> Maybe those tests should be fixed instead?

s/instead/in addition/ :)

> It seems a bug if a test creates 1000+ threads to the point
> pthread_create() fails, except if that test is specifically testing
> for that condition.

It's flat-out wasteful to spawn threads when they're unnecessary,
and I wouldn't be surprised if non-test users hit this on occasion.

glibc has extra overhead when running multithreaded code
(cancellation checks, locking), so every Ruby process pays that
cost even for programs which never see Thread.new themselves.

It's also not easy to diagnose the real cause of the thread
creation failures, either, as POSIX requires glibc to censor the
error to EAGAIN instead of providing info about what actually
failed :<

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next