ruby-changes:49591
From: mame <ko1@a...>
Date: Tue, 9 Jan 2018 12:47:27 +0900 (JST)
Subject: [ruby-changes:49591] mame:r61706 (trunk): Explicit failure in VM_CHECK_MODE when failing to create timer thread
mame 2018-01-09 12:47:22 +0900 (Tue, 09 Jan 2018) New Revision: 61706 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=61706 Log: Explicit failure in VM_CHECK_MODE when failing to create timer thread "warning: pthread_create failed for timer: Resource temporarily unavailable, scheduling broken" still occurs randomly. This change will allow us to debug the issue. Modified files: trunk/thread_pthread.c Index: thread_pthread.c =================================================================== --- thread_pthread.c (revision 61705) +++ thread_pthread.c (revision 61706) @@ -1603,6 +1603,7 @@ rb_thread_create_timer_thread(void) https://github.com/ruby/ruby/blob/trunk/thread_pthread.c#L1603 if (err != 0) { rb_warn("pthread_attr_init failed for timer: %s, scheduling broken", strerror(err)); + VM_ASSERT(err == 0); return; } # ifdef PTHREAD_STACK_MIN -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/